Skip to content

Commit d40b7dd

Browse files
git-nkliycposva
authored andcommitted
chore: typo in variable name (#10358)
1 parent 1a43722 commit d40b7dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/error-detector.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ function checkNode (node: ASTNode, warn: Function) {
5757
}
5858

5959
function checkEvent (exp: string, text: string, warn: Function, range?: Range) {
60-
const stipped = exp.replace(stripStringRE, '')
61-
const keywordMatch: any = stipped.match(unaryOperatorsRE)
62-
if (keywordMatch && stipped.charAt(keywordMatch.index - 1) !== '$') {
60+
const stripped = exp.replace(stripStringRE, '')
61+
const keywordMatch: any = stripped.match(unaryOperatorsRE)
62+
if (keywordMatch && stripped.charAt(keywordMatch.index - 1) !== '$') {
6363
warn(
6464
`avoid using JavaScript unary operator as property name: ` +
6565
`"${keywordMatch[0]}" in expression ${text.trim()}`,

0 commit comments

Comments
 (0)