mirror of
https://github.com/github/codeql.git
synced 2026-04-19 14:04:09 +02:00
JS: Expand attribute regex to include some Vue attributes
This commit is contained in:
@@ -184,8 +184,9 @@ public class HTMLExtractor implements IExtractor {
|
||||
private static final Pattern ANGULAR_FOR_LOOP_DECL =
|
||||
Pattern.compile("^ *let +(\\w+) +of(?: +|(?!\\w))(.*)");
|
||||
|
||||
/** Attribute names that look valid in HTML or in one of the template languages we support, like Vue and Angular. */
|
||||
private static final Pattern VALID_ATTRIBUTE_NAME =
|
||||
Pattern.compile("\\*?\\[?\\(?[\\w:_\\-]+\\]?\\)?");
|
||||
Pattern.compile("[*:@]?\\[?\\(?[\\w:_\\-.]+\\]?\\)?");
|
||||
|
||||
/** List of HTML attributes whose value is interpreted as JavaScript. */
|
||||
private static final Pattern JS_ATTRIBUTE =
|
||||
|
||||
Reference in New Issue
Block a user