File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ action:
10
10
- " -"
11
11
- " –"
12
12
tokens :
13
- - ' -\d+(?:\.\d+)?'
13
+ - ' (?<=\s) -\d+(?:\.\d+)?\b '
Original file line number Diff line number Diff line change @@ -177,8 +177,9 @@ Feature: Rules
177
177
When I test "Numbers"
178
178
Then the output should contain exactly:
179
179
"""
180
- test.md:1:15:Microsoft.Ranges:In most cases, use 'from' or 'through' to describe a range of numbers.
181
- test.md:4:48:Microsoft.RangeTime:Use 'to' instead of a dash in 'AM - 2:00 PM'.
180
+ test.md:3:48:Microsoft.RangeTime:Use 'to' instead of a dash in 'AM - 2:00 PM'.
181
+ test.md:7:16:Microsoft.Negative:Form a negative number with an en dash, not a hyphen.
182
+ test.md:7:33:Microsoft.Negative:Form a negative number with an en dash, not a hyphen.
182
183
"""
183
184
184
185
Scenario : Date Formatting
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ MinAlertLevel = suggestion
6
6
Microsoft.Ranges = YES
7
7
Microsoft.RangeFormat = YES
8
8
Microsoft.RangeTime = YES
9
+ Microsoft.Negative = YES
Original file line number Diff line number Diff line change 1
1
Look at pages 3 – 5.
2
2
3
-
4
3
Use to in a range of times. For example, 10:00 AM - 2:00 PM.
4
+
5
+ The event was on 2023-04.
6
+
7
+ The result was -4. I calculated -9.99.
You can’t perform that action at this time.
0 commit comments