Skip to content

Conversation

@erik-krogh
Copy link
Contributor

@erik-krogh erik-krogh commented Apr 27, 2021

Fixes an FP I noticed in an internal project.

An evaluation was uneventful.

I don't think this requires a change-note, but let me know if you think this change needs one.

@erik-krogh erik-krogh added the Awaiting evaluation Do not merge yet, this PR is waiting for an evaluation to finish label Apr 27, 2021
@github-actions github-actions bot added the JS label Apr 27, 2021
@erik-krogh erik-krogh added no-change-note-required This PR does not need a change note and removed Awaiting evaluation Do not merge yet, this PR is waiting for an evaluation to finish labels Apr 27, 2021
@erik-krogh erik-krogh marked this pull request as ready for review April 27, 2021 11:39
@erik-krogh erik-krogh requested a review from a team as a code owner April 27, 2021 11:39
RegExp::alwaysMatchesMetaCharacter(getRegExp().getRoot(), ["<", "'", "\""])
or
// or it's a global inverted char class.
getRegExp().getRoot().(RegExpCharacterClass).isInverted()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check which RegExpCharacterClass we are dealing with?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm. Possibly yes.

I found the RegExp::isWildcardLike predicate, which I think matches nicely, so I refactored to use that predicate.

@erik-krogh
Copy link
Contributor Author

Another evaluation with the above changes also looks fine.

@codeql-ci codeql-ci merged commit 9c5ad44 into github:main Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

JS no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants