parent
0f509f8336
commit
11e24d53a1
|
|
@ -168,7 +168,9 @@ function is_identifier_char(ch) {
|
||||||
};
|
};
|
||||||
|
|
||||||
function is_identifier_string(str){
|
function is_identifier_string(str){
|
||||||
for (var i = str.length; --i >= 0;) {
|
var i = str.length;
|
||||||
|
if (i == 0) return false;
|
||||||
|
while (--i >= 0) {
|
||||||
if (!is_identifier_char(str.charAt(i)))
|
if (!is_identifier_char(str.charAt(i)))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user