We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfda8d3 commit a2bdc84Copy full SHA for a2bdc84
index.js
@@ -24,7 +24,7 @@ Parser.prototype.ident = function(){
24
};
25
26
Parser.prototype.int = function(){
27
- var m = /^((\d+)(\w+)?) */.exec(this.str);
+ var m = /^((\d+)(\S+)?) */.exec(this.str);
28
if (!m) return;
29
this.skip(m);
30
var n = ~~m[2];
@@ -39,7 +39,7 @@ Parser.prototype.int = function(){
39
40
41
Parser.prototype.float = function(){
42
- var m = /^((\d+)?(\.\d+)(\w+)?) */.exec(this.str);
+ var m = /^((\d+)?(\.\d+)(\S+)?) */.exec(this.str);
43
44
45
var n = parseFloat(m[2]);
0 commit comments