Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix some string escaping problems; still a bit broken

  • Loading branch information...
commit 3a5b19877ada421830f547b2cfe084b27e93e9a6 1 parent 0b4e5ca
@moritz authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.