Skip to content

Commit 67f5dcd

Browse files
committed
use non-capturing regex in v-bind
1 parent a17ab47 commit 67f5dcd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/directives/public/bind.js

Lines 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)