Skip to content

Commit 04ec833

Browse files
posvahefeng
authored and
hefeng
committedJan 25, 2019
fix(for): use IE compatible regex in v-for regex (vuejs#8048)
Closes vuejs#7946
1 parent d826997 commit 04ec833

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)
Please sign in to comment.