Skip to content

Commit 038ed86

Browse files
yongningfuyyx990803
authored andcommitted
polish(compiler): remove the extra space of v-for alias (#8233)
1 parent bfd722b commit 038ed86

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
@@ -375,7 +375,7 @@ export function parseFor (exp: string): ?ForParseResult {
375375
const alias = inMatch[1].trim().replace(stripParensRE, '')
376376
const iteratorMatch = alias.match(forIteratorRE)
377377
if (iteratorMatch) {
378-
res.alias = alias.replace(forIteratorRE, '')
378+
res.alias = alias.replace(forIteratorRE, '').trim()
379379
res.iterator1 = iteratorMatch[1].trim()
380380
if (iteratorMatch[2]) {
381381
res.iterator2 = iteratorMatch[2].trim()

0 commit comments

Comments
 (0)