@heyramzi/lint 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,7 +24,8 @@ export const patternsNumbersAndRuns = [
|
|
|
24
24
|
// The singular is always an adjective, and `\b` keeps "two ways" caught, which is a real quantity.
|
|
25
25
|
|
|
26
26
|
// A relative pronoun or `of` after the cardinal means it counts no noun ("the one or two that carry weight"), 15 Oct 2026.
|
|
27
|
-
|
|
27
|
+
// A letter lookbehind, not `\b`, because `\b` is ASCII and read the ß in "größten" as an edge (28 Oct 2026).
|
|
28
|
+
test: /(?<!\d[\s-])(?<![\p{L}\p{N}_])(?:two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty|thirty|forty|fifty|sixty|seventy|eighty|ninety|hundred|thousand|million)[\s-]+(?!(?:Sigma|Factor|way|that|which|who|whom|whose|of)\b)[a-z]{3,}/iu,
|
|
28
29
|
rule: "A quantity written as words. A digit is the one shape in a line of prose the eye cannot skim, so every count, duration, price and measure ships as digits: 40 pages, 19 minutes, 3 channels, 20%. See the `spelled-out-number` shape for the exceptions.",
|
|
29
30
|
example:
|
|
30
31
|
'"forty pages" / "nineteen minutes beat twenty-nine" / "twenty per cent of the pipeline"',
|