From d40b7ddb8177944d1dd50f4f780e6fd92c9455c2 Mon Sep 17 00:00:00 2001 From: Li Yongcheng Date: Wed, 7 Aug 2019 15:09:00 +0800 Subject: [PATCH] chore: typo in variable name (#10358) --- src/compiler/error-detector.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/error-detector.js b/src/compiler/error-detector.js index 9893aa4a..05df8b27 100644 --- a/src/compiler/error-detector.js +++ b/src/compiler/error-detector.js @@ -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()}`,