Skip to content

Commit 405c815

Browse files
committed
fix(for): use IE compatible regex in v-for regex
Closes vuejs#7946
1 parent 8cc7eae commit 405c815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/parser/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121

2222
export const onRE = /^@|^v-on:/
2323
export const dirRE = /^v-|^@|^:/
24-
export const forAliasRE = /([^]*?)\s+(?:in|of)\s+([^]*)/
24+
export const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/
2525
export const forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/
2626
const stripParensRE = /^\(|\)$/g
2727

0 commit comments

Comments
 (0)