matching non-letter and non-number
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Sep 2005 15:57:03 +0000 (15:57 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Sep 2005 15:57:03 +0000 (15:57 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1803 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/perlmods/JSON.pm

index 4c0530b..d264496 100644 (file)
@@ -234,7 +234,7 @@ sub perl2JSON {
                $perl =~ s/\f/\\f/sgo;
                $perl =~ s/\r/\\r/sgo;
                $perl =~ s/\n/\\n/sgo;
-               $perl =~ s/(\pM|\pS|\pC)/sprintf('\u%0.4x',ord($1))/sgoe;
+               $perl =~ s/(\pM|\pC)/sprintf('\u%0.4x',ord($1))/sgoe;
                if (length($perl) < 10 and $perl =~ /^(?:\+|-)?\d*\.?\d+$/o and $perl !~ /^(?:\+|-)?0\d+/o ) {
                        $output = $perl;
                } else {
@@ -314,7 +314,7 @@ sub perl2prettyJSON {
                $perl =~ s/\f/\\f/sgo;
                $perl =~ s/\r/\\r/sgo;
                $perl =~ s/\n/\\n/sgo;
-               $perl =~ s/(\pM|\pS|\pC)/sprintf('\u%0.4x',ord($1))/sgoe;
+               $perl =~ s/(\pM|\pC)/sprintf('\u%0.4x',ord($1))/sgoe;
                $output .= "   "x$depth unless($nospace);
                if (length($perl) < 10 and $perl =~ /^(?:\+|-)?\d*\.?\d+$/o and $perl !~ /^(?:\+|-)?0\d+/o ) {
                        $output = $perl;