mirror of
https://github.com/github/codeql.git
synced 2026-05-13 18:59:27 +02:00
JS: Fix broken regex matching predicate
The receiver string and the regex were in the wrong order, leading to test failures when looking for matching comments.
This commit is contained in:
@@ -238,7 +238,7 @@ private class MarkerComment extends Comment {
|
||||
* with version number `version`.
|
||||
*/
|
||||
predicate matchesFramework(FrameworkLibraryWithMarkerComment fl, string version) {
|
||||
fl.getAMarkerCommentRegexWithoutPlaceholders().regexpCapture(this.getText(), 1) = version
|
||||
this.getText().regexpCapture(fl.getAMarkerCommentRegexWithoutPlaceholders(), 1) = version
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user