Skip to content

Commit

Permalink
fix(for): use IE compatible regex in v-for regex (#8048)
Browse files Browse the repository at this point in the history
Closes #7946
  • Loading branch information
posva authored and yyx990803 committed Oct 24, 2018
1 parent 1b69cbd commit ecc239e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/parser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {

export const onRE = /^@|^v-on:/
export const dirRE = /^v-|^@|^:/
export const forAliasRE = /([^]*?)\s+(?:in|of)\s+([^]*)/
export const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/
export const forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/
const stripParensRE = /^\(|\)$/g

Expand Down

2 comments on commit ecc239e

@dandananddada
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nb

@mrquokka
Copy link

@mrquokka mrquokka commented on ecc239e Nov 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Helped me with ie9 bug on 2.5.17

Please sign in to comment.