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

The example code on readme file fails to sanitize rgb color. #19

Open
majeedraza1 opened this issue Dec 6, 2021 · 0 comments
Open

The example code on readme file fails to sanitize rgb color. #19

majeedraza1 opened this issue Dec 6, 2021 · 0 comments

Comments

@majeedraza1
Copy link

On README.md you gave some sample code to sanitize color. But when I was testing I found that it fails to sanitize rgb color.

Later I found the pattern is used for sanitizing rgb color is missing closing bracket.

Here is my solution. Please check this and update README.md file.

rgb\(((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*,\s*){2}((\d{1,2}|1\d\d|2([0-4]\d|5[0-5]))\s*)\)

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

No branches or pull requests

1 participant