|
|
@@ -83,7 +83,9 @@ function processExp(exp: string, dir?: string): string {
|
|
|
} else if (dir === 'for') {
|
|
|
const inMatch = exp.match(forAliasRE)
|
|
|
if (inMatch) {
|
|
|
- const [, LHS, RHS] = inMatch
|
|
|
+ let [, LHS, RHS] = inMatch
|
|
|
+ // #6088
|
|
|
+ LHS = LHS.trim().replace(/^\(|\)$/g, '')
|
|
|
return processExp(`(${LHS})=>{}`) + processExp(RHS)
|
|
|
}
|
|
|
}
|