Skip to content

Use a (hopefully) more efficient regex for matching jquery in the safelist#42653

Merged
weswigham merged 1 commit intomicrosoft:masterfrom
weswigham:use-more-efficient-regex
Feb 4, 2021
Merged

Use a (hopefully) more efficient regex for matching jquery in the safelist#42653
weswigham merged 1 commit intomicrosoft:masterfrom
weswigham:use-more-efficient-regex

Conversation

@weswigham
Copy link
Copy Markdown
Member

This was flagged as a potential performance issue for files named like jquery-99999999999999999999999999.js (or similar), which, while unlikely to occur in the wild, is probably simple enough for us to change the regex to avoid triggering (vs suppressing the codeQL result). I'm not 100% sure the new regex won't also have catastrophic backtracking, but I trust codeQL'll probably flag this PR if it does~

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Feb 4, 2021
@weswigham weswigham merged commit f569aa3 into microsoft:master Feb 4, 2021
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants