Skip to content

use matches instead of regexpMatch/prefix/suffix#7169

Merged
aschackmull merged 1 commit intogithub:mainfrom
erik-krogh:useMatches
Nov 19, 2021
Merged

use matches instead of regexpMatch/prefix/suffix#7169
aschackmull merged 1 commit intogithub:mainfrom
erik-krogh:useMatches

Conversation

@erik-krogh
Copy link
Copy Markdown
Contributor

@erik-krogh erik-krogh commented Nov 18, 2021

The matches predicate has better performance, so it should be used when possible.

The patch was written automatically by a query.

Evalutions (see backrefs) look OK.

Copy link
Copy Markdown
Contributor

@smowton smowton left a comment

Choose a reason for hiding this comment

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

Java 👍

@erik-krogh erik-krogh marked this pull request as ready for review November 18, 2021 20:21
@erik-krogh erik-krogh requested review from a team as code owners November 18, 2021 20:21
@erik-krogh erik-krogh added the no-change-note-required This PR does not need a change note label Nov 18, 2021
Copy link
Copy Markdown
Contributor

@asgerf asgerf left a comment

Choose a reason for hiding this comment

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

JS 👍

Copy link
Copy Markdown
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

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

C++ 👍

@aschackmull aschackmull merged commit 1f3f7e9 into github:main Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ Java JS no-change-note-required This PR does not need a change note Ruby

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants