Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Sep 24, 2016
1 parent fb2b4c4 commit 4525aa0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/parser/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ function cmpStr(testStr, start, end, referenceStr) {
}

for (var i = start; i < end; i++) {
var sourceCode = testStr.charCodeAt(i);
var strCode = referenceStr.charCodeAt(i - start);
var testCode = testStr.charCodeAt(i);
var refCode = referenceStr.charCodeAt(i - start);

// referenceStr[i].toLowerCase()
if (sourceCode >= 65 && sourceCode <= 90) {
sourceCode = sourceCode | 32;
// testStr[i].toLowerCase()
if (testCode >= 65 && testCode <= 90) {
testCode = testCode | 32;
}

if (sourceCode !== strCode) {
if (testCode !== refCode) {
return false;
}
}
Expand Down

0 comments on commit 4525aa0

Please sign in to comment.