Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current forAliasRE has the first rule greedy (`.*?`), which will attempt to match whatever it can. This exposes a bug (vuejs#3846), where the regex fails if the template happens to have " in " or " of " in its last group. For instance, with the template `for key in [{body: 'Hey in body'}]`, current regex will capture the last group as `body'}]` instead of `[{body: 'Hey in body'}]`. This commit aims to fix this issue by making the first rule lazy instead.
- Loading branch information