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:
Aditya Sharad
2021-12-09 13:42:33 -08:00
parent 322e39446d
commit 0c3daabc51

View File

@@ -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
}
}