File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
ql/test/library-tests/frameworks/Vue Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -184,8 +184,9 @@ private boolean isAngularTemplateAttributeName(String name) {
184
184
private static final Pattern ANGULAR_FOR_LOOP_DECL =
185
185
Pattern .compile ("^ *let +(\\ w+) +of(?: +|(?!\\ w))(.*)" );
186
186
187
+ /** Attribute names that look valid in HTML or in one of the template languages we support, like Vue and Angular. */
187
188
private static final Pattern VALID_ATTRIBUTE_NAME =
188
- Pattern .compile ("\\ * ?\\ [?\\ (?[\\ w:_\\ -]+\\ ]?\\ )?" );
189
+ Pattern .compile ("[*:@] ?\\ [?\\ (?[\\ w:_\\ -. ]+\\ ]?\\ )?" );
189
190
190
191
/** List of HTML attributes whose value is interpreted as JavaScript. */
191
192
private static final Pattern JS_ATTRIBUTE =
Original file line number Diff line number Diff line change @@ -175,3 +175,6 @@ attribute
175
175
| single-file-component-3.vue:4:9:4:49 | src=./single-file-component-3-script.js | src |
176
176
| single-file-component-4.vue:2:8:2:21 | v-html=dataA | v-html |
177
177
| single-file-component-5.vue:2:8:2:21 | v-html=dataA | v-html |
178
+ | special-syntax.vue:2:9:2:22 | :colonProp=x | :colonProp |
179
+ | special-syntax.vue:2:24:2:34 | @atProp=x | @atProp |
180
+ | special-syntax.vue:3:9:3:29 | :colonField.field=x | :colonField.field |
You can’t perform that action at this time.
0 commit comments