Update index.ts
This commit is contained in:
parent
de89b30b02
commit
646576d56f
1 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ export function tokenize(input : string){
|
|||
{matched:"",
|
||||
remained: input});
|
||||
|
||||
// integer = ([+]|[-])\d\d?
|
||||
// integer = ([+]|[-])?\d\d*
|
||||
let integer = (x : MatcheePair) =>
|
||||
{ let wrapped_x = toSome(x);
|
||||
let plusMinus = orDo(match1Char('+'), match1Char('-')); // ([+]|[-])
|
||||
|
@ -250,4 +250,4 @@ tokenize("+123");
|
|||
tokenize("123");
|
||||
tokenize("-123");
|
||||
tokenize(" 123");
|
||||
tokenize("c123");
|
||||
tokenize("c123");
|
||||
|
|
Loading…
Reference in a new issue