From ecc239e47516d7f9a93b2cd49da4a2000960b8f7 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 24 Oct 2018 18:48:07 +0200 Subject: [PATCH] fix(for): use IE compatible regex in v-for regex (#8048) Closes #7946 --- src/compiler/parser/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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