File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ const tokens = ";:,.\\[]()|^&+-/*=%!~$<>?@";
10
10
module . exports = {
11
11
// check if the char can be a numeric
12
12
is_NUM : function ( ) {
13
+ const ch = this . _input . charCodeAt ( this . offset - 1 ) ;
14
+ return ( ch > 47 && ch < 58 ) || ch === 95 ;
15
+ } ,
16
+
17
+ // check if the char can be a numeric
18
+ is_NUM_START : function ( ) {
13
19
const ch = this . _input . charCodeAt ( this . offset - 1 ) ;
14
20
return ch > 47 && ch < 58 ;
15
21
} ,
@@ -76,7 +82,10 @@ module.exports = {
76
82
is_HEX : function ( ) {
77
83
const ch = this . _input . charCodeAt ( this . offset - 1 ) ;
78
84
return (
79
- ( ch > 47 && ch < 58 ) || ( ch > 64 && ch < 71 ) || ( ch > 96 && ch < 103 )
85
+ ( ch > 47 && ch < 58 ) ||
86
+ ( ch > 64 && ch < 71 ) ||
87
+ ( ch > 96 && ch < 103 ) ||
88
+ ch === 95
80
89
) ;
81
90
}
82
91
} ;
You can’t perform that action at this time.
0 commit comments