mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 02:57:43 +08:00
chore: typo in variable name (#10358)
This commit is contained in:
parent
1a43722e72
commit
d40b7ddb81
@ -57,9 +57,9 @@ function checkNode (node: ASTNode, warn: Function) {
|
||||
}
|
||||
|
||||
function checkEvent (exp: string, text: string, warn: Function, range?: Range) {
|
||||
const stipped = exp.replace(stripStringRE, '')
|
||||
const keywordMatch: any = stipped.match(unaryOperatorsRE)
|
||||
if (keywordMatch && stipped.charAt(keywordMatch.index - 1) !== '$') {
|
||||
const stripped = exp.replace(stripStringRE, '')
|
||||
const keywordMatch: any = stripped.match(unaryOperatorsRE)
|
||||
if (keywordMatch && stripped.charAt(keywordMatch.index - 1) !== '$') {
|
||||
warn(
|
||||
`avoid using JavaScript unary operator as property name: ` +
|
||||
`"${keywordMatch[0]}" in expression ${text.trim()}`,
|
||||
|
Loading…
Reference in New Issue
Block a user