Skip to content

Commit 9cbf2b1

Browse files
committed
Properly escape messages
1 parent 6813963 commit 9cbf2b1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

scripts/validation/rules/rules-spelling.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
shouldMatch: false
44
type: warning
55
format: markdown
6-
errorMessage: Megabytes should be either written as 'megabytes' or abbreviated as
7-
'MB'
6+
errorMessage: "Megabytes should be either written as 'megabytes' or abbreviated as
7+
'MB'"
88

99
# MHz / GHz spacing
10-
- regex: "(?<!\\S)\\b\\d+[MG][hH]z\\b"
10+
- regex: "(?<!\\S)\\b\\d+[MmGg][hH]z\\b"
1111
shouldMatch: false
1212
type: warning
1313
format: markdown
1414
errorMessage: Space between unit and value required
1515

1616
# MHz / GHz spelling
17-
- regex: "(?<!\\S)\\b\\d+\\s?[MGmg]hz\\b"
17+
- regex: "(?<!\\S)\\b\\d+\\s?[MmGg]hz\\b"
1818
shouldMatch: false
1919
type: warning
2020
format: markdown
21-
errorMessage: 'Megahertz'/'Gigahertz' should be abbreviated as MHz/GHz
21+
errorMessage: "'Megahertz'/'Gigahertz' should be abbreviated as MHz/GHz"
2222

2323
# Mbps / Gbps spacing
2424
- regex: "(?<!\\S)\\b\\d+[MG]bps\\b"
@@ -32,7 +32,7 @@
3232
shouldMatch: false
3333
type: warning
3434
format: markdown
35-
errorMessage: 'Megabit per second' should be abbreviated Mbps, 'Gigabit per second' Gbps
35+
errorMessage: "'Megabit per second' should be abbreviated Mbps, 'Gigabit per second' Gbps"
3636

3737
# kB / MB spacing
3838
- regex: "(?<!\\S)\\b\\d+[mMkK][bB]\\b"
@@ -46,14 +46,14 @@
4646
shouldMatch: false
4747
type: warning
4848
format: markdown
49-
errorMessage: 'Kilobyte' should be abbreviated as KB, 'Kilobit' as Kb.
49+
errorMessage: "'Kilobyte' should be abbreviated as KB, 'Kilobit' as Kb."
5050

5151
# MB spelling
5252
- regex: "(?<!\\S)\\b\\d+\\s?m[bB]\\b"
5353
shouldMatch: false
5454
type: warning
5555
format: markdown
56-
errorMessage: 'Megabyte' should be abbreviated as MB, 'Megabit' as Mb.
56+
errorMessage: "'Megabyte' should be abbreviated as MB, 'Megabit' as Mb."
5757

5858
# μm / mm spacing
5959
- regex: "(?<!\\S)\\b\\d+[μm]m\\b"
@@ -68,7 +68,7 @@
6868
type: warning
6969
format: markdown
7070
includeCodeBlocks: false
71-
errorMessage: Incorrect spelling of 'Wi-Fi' found.
71+
errorMessage: "Incorrect spelling of 'Wi-Fi' found."
7272

7373
- regex: "(?<!\\/|-)\\b(master|slave)\\b"
7474
regexModifiers: "gi"

0 commit comments

Comments
 (0)