Skip to content

Commit 96297f3

Browse files
committed
chore: fix typos ignore regex
- Update spellchecker:off/on regex pattern to use [\\s\\S]* instead of .*?\\n This fixes issue where multiline content was not properly ignored - Apply same fix to HTML comment variant - Add trailing comma to maintain consistency with formatting rules This aligns with the same fix applied to the Python SDK.
1 parent 1575b9a commit 96297f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

typos.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[default]
22
locale = 'en-us'
33
extend-ignore-re = [
4-
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
5-
"(?s)<!--\\s*spellchecker:off.*?\\n\\s*spellchecker:on\\s*-->",
4+
"(?s)(#|//)\\s*spellchecker:off[\\s\\S]*?(#|//)\\s*spellchecker:on",
5+
"(?s)<!--\\s*spellchecker:off\\s*-->[\\s\\S]*?<!--\\s*spellchecker:on\\s*-->",
66
"(?Rm)^.*#\\s*spellchecker:disable-line$",
7-
"(?m)^.*<!--\\s*spellchecker:disable-line\\s*-->\\n.*$"
7+
"(?m)^.*<!--\\s*spellchecker:disable-line\\s*-->\\n.*$",
88
]
99

1010
[files]

0 commit comments

Comments
 (0)