JS: Support [(ngModel)]

This commit is contained in:
Asger F
2025-01-09 13:47:00 +01:00
parent d55c68c1f1
commit 859783c08b
4 changed files with 18 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ public class HTMLExtractor implements IExtractor {
/** 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 =