diff --git a/src/compiler/parser/index.js b/src/compiler/parser/index.js index c62358909de..880a3197755 100644 --- a/src/compiler/parser/index.js +++ b/src/compiler/parser/index.js @@ -21,7 +21,7 @@ import { export const onRE = /^@|^v-on:/ export const dirRE = /^v-|^@|^:/ -export const forAliasRE = /([^]*?)\s+(?:in|of)\s+([^]*)/ +export const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/ export const forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/ const stripParensRE = /^\(|\)$/g