use matches instead of regexpMatch

This commit is contained in:
Erik Krogh Kristensen
2021-11-18 15:41:25 +01:00
parent 6c2713dd8b
commit 011fc20963
11 changed files with 16 additions and 16 deletions

View File

@@ -833,7 +833,7 @@ class NgDataFlowNode extends TNode {
private predicate fileIsImplicitlyAngularJS(HTML::HtmlFile file) {
// The file contains ng-* attributes.
exists(HTML::Attribute attrib |
attrib.getName().regexpMatch("ng-.*") and
attrib.getName().matches("ng-%") and
attrib.getFile() = file
) and
// But does not contain the ng-app root element, implying that file is