Skip to content

Commit 46fe648

Browse files
ochafikHanClinto
andauthored
Update examples/server/public/json-schema-to-grammar.mjs
Co-authored-by: Clint Herron <[email protected]>
1 parent 2813835 commit 46fe648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/public/json-schema-to-grammar.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class BuiltinRule {
3434
const PRIMITIVE_RULES = {
3535
boolean : new BuiltinRule('("true" | "false") space', []),
3636
'decimal-part' : new BuiltinRule('[0-9]{1,16}', []),
37-
'integral-part': new BuiltinRule('[0] | [1-9] [0-9]{1,15}', []),
37+
'integral-part': new BuiltinRule('[0] | [1-9] [0-9]{0,15}', []),
3838
number : new BuiltinRule('("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space', ['integral-part', 'decimal-part']),
3939
integer : new BuiltinRule('("-"? integral-part) space', ['integral-part']),
4040
value : new BuiltinRule('object | array | string | number | boolean | null', ['object', 'array', 'string', 'number', 'boolean', 'null']),

0 commit comments

Comments
 (0)