mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
use matches instead of regexpMatch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user