Skip to content

Commit

Permalink
bug fix (#3594)
Browse files Browse the repository at this point in the history
  • Loading branch information
aydey authored and sachinma committed Feb 13, 2017
1 parent 2acd499 commit c03cefd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function parse(input: string) {
}

function isName(literal: string, specialCharacterFlag: boolean): boolean {
return literal[0] === '-' && !specialCharacterFlag;
return literal[0] === '-' && !specialCharacterFlag && isNaN(Number(literal));
}

function findLiteral(input, currentPosition) {
Expand Down

0 comments on commit c03cefd

Please sign in to comment.