fix(v-on): properly detect member expressions with optional chaining

fix #4107
This commit is contained in:
Evan You
2021-07-15 12:23:07 -04:00
parent 2937530bef
commit 963085d18c
2 changed files with 3 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ const enum MemberExpLexState {
}
const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/
const validIdentCharRE = /[\.\w$\xA0-\uFFFF]/
const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/
const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g
/**