From f18c1e855afe2acd453fcfb3a2fc15f3a39cd3d7 Mon Sep 17 00:00:00 2001 From: Joseph Kato Date: Sun, 18 Feb 2024 19:36:16 -0800 Subject: [PATCH] Update actions --- Microsoft/Dashes.yml | 6 +++--- Microsoft/HeadingPunctuation.yml | 4 ++-- Microsoft/Hyphens.yml | 8 ++++---- Microsoft/Negative.yml | 8 ++++---- Microsoft/RangeFormat.yml | 8 ++++---- Microsoft/RangeTime.yml | 6 +++--- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Microsoft/Dashes.yml b/Microsoft/Dashes.yml index 2894cf7..df9ba5c 100644 --- a/Microsoft/Dashes.yml +++ b/Microsoft/Dashes.yml @@ -7,7 +7,7 @@ level: error action: name: edit params: - - remove - - ' ' + - trim + - " " tokens: - - '[—–]\s|\s[—–]' + - '\s[—–]\s' diff --git a/Microsoft/HeadingPunctuation.yml b/Microsoft/HeadingPunctuation.yml index af04b02..eea912a 100644 --- a/Microsoft/HeadingPunctuation.yml +++ b/Microsoft/HeadingPunctuation.yml @@ -7,7 +7,7 @@ scope: heading action: name: edit params: - - remove - - '.?!' + - trim_right + - ".?!" tokens: - '[a-z][.?!](?:\s|$)' diff --git a/Microsoft/Hyphens.yml b/Microsoft/Hyphens.yml index 90bbb5d..7e5731c 100644 --- a/Microsoft/Hyphens.yml +++ b/Microsoft/Hyphens.yml @@ -7,8 +7,8 @@ nonword: true action: name: edit params: - - replace - - '-' - - ' ' + - regex + - "-" + - " " tokens: - - '\s[^\s-]+ly-' + - '\b[^\s-]+ly-\w+\b' diff --git a/Microsoft/Negative.yml b/Microsoft/Negative.yml index d6ff2f2..6854b03 100644 --- a/Microsoft/Negative.yml +++ b/Microsoft/Negative.yml @@ -6,8 +6,8 @@ level: error action: name: edit params: - - replace - - '-' - - '–' + - regex + - "-" + - "–" tokens: - - '\s-\d+\s' + - '-\d+(?:\.\d+)?' diff --git a/Microsoft/RangeFormat.yml b/Microsoft/RangeFormat.yml index f1d736e..bae3e21 100644 --- a/Microsoft/RangeFormat.yml +++ b/Microsoft/RangeFormat.yml @@ -6,8 +6,8 @@ level: error action: name: edit params: - - replace - - '-' - - '–' + - regex + - "-" + - "–" tokens: - - '\b\d+\s?[-]\s?\d+\b' + - '\b\d+\s?-\s?\d+\b' diff --git a/Microsoft/RangeTime.yml b/Microsoft/RangeTime.yml index cdd4b33..72d8bbf 100644 --- a/Microsoft/RangeTime.yml +++ b/Microsoft/RangeTime.yml @@ -6,8 +6,8 @@ level: error action: name: edit params: - - replace - - '[-–]' - - 'to' + - regex + - "[-–]" + - "to" tokens: - '\b(?:AM|PM)\s?[-–]\s?.+(?:AM|PM)\b'