Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[default]
locale = 'en-us'
extend-ignore-re = [
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
"(?s)<!--\\s*spellchecker:off.*?\\n\\s*spellchecker:on\\s*-->",
"(?s)(#|//)\\s*spellchecker:off[\\s\\S]*?(#|//)\\s*spellchecker:on",
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated regex pattern removes the newline requirement and whitespace matching before the second comment marker. This could cause the pattern to match unintended content. For example, it could match cases where "spellchecker:on" appears in the middle of a line without a proper comment marker prefix.

The pattern should probably be:
"(?s)(#|//)\\s*spellchecker:off[\\s\\S]*?\\s*(#|//)\\s*spellchecker:on"

This ensures that whitespace is matched before the second comment marker, making the pattern more robust.

Suggested change
"(?s)(#|//)\\s*spellchecker:off[\\s\\S]*?(#|//)\\s*spellchecker:on",
"(?s)(#|//)\\s*spellchecker:off[\\s\\S]*?\\s*(#|//)\\s*spellchecker:on",

Copilot uses AI. Check for mistakes.
"(?s)<!--\\s*spellchecker:off\\s*-->[\\s\\S]*?<!--\\s*spellchecker:on\\s*-->",
"(?Rm)^.*#\\s*spellchecker:disable-line$",
"(?m)^.*<!--\\s*spellchecker:disable-line\\s*-->\\n.*$"
"(?m)^.*<!--\\s*spellchecker:disable-line\\s*-->\\n.*$",
]

[files]
Expand Down
Loading