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

Keep color codes #63

Closed
wants to merge 4 commits into from
Closed

Keep color codes #63

wants to merge 4 commits into from

Conversation

smallstepstoday
Copy link

Retain hash for color codes embedded in strings or tagged template literals. Currently these hash symbols are being stripped out incorrectly making it impossible to know that a word is in fact a color code.

Retain hash for color codes embedded in strings or tagged template literals.
@smallstepstoday smallstepstoday changed the title Update spell-checker.js Keep color codes Jul 12, 2020
The color code check needs to ensure that the code is not simply the beginning of a word whose characters fall into a-f. For example: `#cabbage` is not a valid color code even though it begins with `#cab`.
Spotted a duplicate hex code check in the RegExp
@gajus
Copy link

gajus commented Oct 12, 2021

Would love to see this merged.

@aotaduy
Copy link
Owner

aotaduy commented Dec 1, 2022

Could this same funcionality be done by configuration using skipIfMatch paramater for the config? and adding the regexp there?

Let me check it out

@smallstepstoday
Copy link
Author

My change simply adds a check for valid color codes and does not change the application logic or configuration parameters. I think it is the least impact change. Everything else in the library seems to work just fine

@aotaduy
Copy link
Owner

aotaduy commented Dec 2, 2022

Yes, I saw your changes but i think we can do the same with a configuration parameter and without changing the code. I will always prefer the configuration solution over changes in the code. I will try to check this on these days.
Thanks!

@smallstepstoday smallstepstoday closed this by deleting the head repository Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants