Skip to content
Browse files

fix some string escaping problems; still a bit broken

  • Loading branch information...
1 parent 0b4e5ca commit 3a5b19877ada421830f547b2cfe084b27e93e9a6 @moritz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/JSON/Tiny.pm
View
2 lib/JSON/Tiny.pm
@@ -43,7 +43,7 @@ multi to-json(Str:D $d) {
'"'
~ (~$d).subst(/<["\\\b\f\n\r\t]>/, { %esc{$_} }, :g)\
- .subst(/<-[# ..~]-[\ ]>/, { ord(~$_).fmt('\u%04x') }, :g)
+ .subst(/<-[\ ..~]>/, { ord(~$_).fmt('\u%04x') }, :g)
~ '"'
}
multi to-json(Array:D $d) {

0 comments on commit 3a5b198

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