Skip to content

Commit 21bfe7b

Browse files
committed
Merge pull request #892 from dgerber/fix-settable-path
fix typo in "settable path" regexp
2 parents f8e98ce + 2333f42 commit 21bfe7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/compile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function teardownDirs (vm, dirs, destroying) {
120120
/**
121121
* Compile the root element of an instance. There are
122122
* 3 types of things to process here:
123-
*
123+
*
124124
* 1. props on parent container (child scope)
125125
* 2. other attrs on parent container (parent scope)
126126
* 3. attrs on the component template root node, if
@@ -391,7 +391,7 @@ function makeChildLinkFn (linkFns) {
391391

392392
// regex to test if a path is "settable"
393393
// if not the prop binding is automatically one-way.
394-
var settablePathRE = /^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\[[^\[\]]\])*$/
394+
var settablePathRE = /^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\[[^\[\]]+\])*$/
395395

396396
function compileProps (el, attrs, propNames) {
397397
var props = []
@@ -721,4 +721,4 @@ function checkTransclusion (el) {
721721
el.removeAttribute(transcludedFlagAttr)
722722
return true
723723
}
724-
}
724+
}

0 commit comments

Comments
 (0)