From 4a23976adce2103c2fad09e097f19c9c19364f14 Mon Sep 17 00:00:00 2001 From: fuyongning Date: Wed, 23 May 2018 16:31:04 +0800 Subject: [PATCH] fix(compiler): remove the extra space of v-for alias --- 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 a603b36bb55..c4f31e3e177 100644 --- a/src/compiler/parser/index.js +++ b/src/compiler/parser/index.js @@ -375,7 +375,7 @@ export function parseFor (exp: string): ?ForParseResult { const alias = inMatch[1].trim().replace(stripParensRE, '') const iteratorMatch = alias.match(forIteratorRE) if (iteratorMatch) { - res.alias = alias.replace(forIteratorRE, '') + res.alias = alias.replace(forIteratorRE, '').trim() res.iterator1 = iteratorMatch[1].trim() if (iteratorMatch[2]) { res.iterator2 = iteratorMatch[2].trim()