Commit 996deb3
fix(rules): do not negate case rules (#330)
Many scripts, i.e. Han, Devanagari, are not cased. Thus `ensureCase` will always return true for texts written in these scripts on any case rules.
Negating case rules will cause `test: 你好` as invalid since they are conformed to any case rules.
For definition of cased, see http://unicode.org/reports/tr44/#Cased1 parent 458f24c commit 996deb3
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments