Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 67f5dcd

Browse filesBrowse files
committed
use non-capturing regex in v-bind
1 parent a17ab47 commit 67f5dcd
Copy full SHA for 67f5dcd

File tree

1 file changed

+2
-3
lines changed
Filter options

1 file changed

+2
-3
lines changed

‎src/directives/public/bind.js

Copy file name to clipboardExpand all lines: src/directives/public/bind.js
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ const xlinkNS = 'http://www.w3.org/1999/xlink'
88
const xlinkRE = /^xlink:/
99

1010
// check for attributes that prohibit interpolations
11-
const disallowedInterpAttrRE = /^v-|^:|^@|^(is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/
12-
11+
const disallowedInterpAttrRE = /^v-|^:|^@|^(?:is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/
1312
// these attributes should also set their corresponding properties
1413
// because they only affect the initial state of the element
15-
const attrWithPropsRE = /^(value|checked|selected|muted)$/
14+
const attrWithPropsRE = /^(?:value|checked|selected|muted)$/
1615

1716
// these attributes should set a hidden property for
1817
// binding v-model to object values

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.