-
Notifications
You must be signed in to change notification settings - Fork 7
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
LGTM-Alert Polynomial regular expression used on uncontrolled data #42
Comments
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests. |
I dont have a laptop the next 4 days, so if you want to wait that long, i could try. But i am not quite sure why you call match on not test. I assume that you can fix it by doing, as the s-flag means that dot also matches newline Or why do you need the non matching groups anyway, Maybe the original writer of that regex can give more insights? |
Totally, take your time. cc @zekth |
I'll try to investigate |
This is relative to an old IE fix. I think we can drop the whole statement IMO |
Let's do it. |
Got a link or some additional info on that @zekth? Just curious as to what it was fixing (I still have to support IE forever unfortunately). |
I think this is related to this behavior https://stackoverflow.com/questions/28857067/regex-not-working-for-ie-but-works-for-other-browsers |
Prerequisites
Issue
see:
https://lgtm.com/projects/g/fastify/fast-uri/snapshot/a91fe052eb5fc4f8831c7fee0131457289db14a9/files/index.js?sort=name&dir=ASC&mode=list#x852651248d66d755:1
The text was updated successfully, but these errors were encountered: