Browse Source

polish(compiler): remove the extra space of v-for alias (#8233)

dev
yongningfu 6 years ago
committed by Evan You
parent
commit
038ed86967
  1. 2
      src/compiler/parser/index.js

2
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()

Loading…
Cancel
Save