|
33 | 33 | format: markdown
|
34 | 34 | errorMessage: Space between unit and value required
|
35 | 35 |
|
36 | | -# Kbps/ Mbps / Gbps spelling |
37 | | -- regex: "(?<!\\S)\\b\\d+\\s?[mgk]bps\\b" |
| 36 | +# Kbps / KBps / Mbps / MBps / Gbps / GBps spelling |
| 37 | +- regex: "(?<!\\S)\\b\\d+\\s?[kmg][Bb][Pp][Ss]\\b" |
38 | 38 | shouldMatch: false
|
39 | 39 | type: warning
|
40 | 40 | format: markdown
|
41 | | - errorMessage: "'Kilobit per second' should be abbreviated as Kbps, 'Megabit per second' as Mbps and 'Gigabit per second' Gbps" |
| 41 | + errorMessage: "Incorrect abbreviation used. Use one of the following: Kbps, KBps, Mbps, MBps, Gbps or GBps (b = bits, B = bytes)" |
42 | 42 |
|
43 | 43 | # kB / KB / Mb / MB / Gb / GB spacing
|
44 | 44 | - regex: "(?<!\\S)\\b\\d+[gBmMkK][bB]\\b"
|
|
0 commit comments