Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include ZWSP in irregular whitespace? #6646

Closed
overlookmotel opened this issue Oct 17, 2024 · 2 comments · Fixed by #6662
Closed

Include ZWSP in irregular whitespace? #6646

overlookmotel opened this issue Oct 17, 2024 · 2 comments · Fixed by #6662
Assignees
Labels
A-parser Area - Parser C-bug Category - Bug

Comments

@overlookmotel
Copy link
Contributor

#6639 turned up an odd anomaly.

The definition of "whitespace" used by TypeScript matches ours except for 1 character - ZWSP (\u{200b}).

Should this character be included in the group matched by is_irregular_whitespace?

@Boshen
Copy link
Member

Boshen commented Oct 17, 2024

Context: https://eslint.org/docs/latest/rules/no-irregular-whitespace

It should be included.

@Boshen
Copy link
Member

Boshen commented Oct 18, 2024

..ZWSP | NNBSP | MMSP | IDEOGRAPHIC_SPACE

It was a mistake with the range operator, should be ..=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-parser Area - Parser C-bug Category - Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants