Skip to content
Browse files

another regex simplification

  • Loading branch information...
1 parent 6d1caa6 commit 299249daca5e7821d877025b574ab91abf2649fb @moritz committed May 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/JSON/Tiny/Grammar.pm
View
2 lib/JSON/Tiny/Grammar.pm
@@ -6,7 +6,7 @@ rule object { '{' ~ '}' <pairlist> }
rule pairlist { <pair>* % \, }
rule pair { <string> ':' <value> }
rule array { '[' ~ ']' <arraylist> }
-rule arraylist { [ <value>+ % [ \, ] ]? }
+rule arraylist { <value>* % [ \, ] }
proto token value {*};
token value:sym<number> {

0 comments on commit 299249d

Please sign in to comment.
Something went wrong with that request. Please try again.