print_r 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/print_r/parser.rb +1 -1
- data/lib/print_r/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76610a2d06952b85841bb2a3172aba1b5f0567ac
|
4
|
+
data.tar.gz: 9e25635a3c5683fcd01c2aa891e474bd4e425d8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 451e8040bc5ae8ccb8fae7fc9cdbbbe3ea3b864310ebd9191c64ad77d060388690357a9f8c68a334a96f76b148d47e749ee0cb07532171d2269a8eb33855ba4a
|
7
|
+
data.tar.gz: e7502e711af48a1d5be9cfffab74fef3a11ec3c6562efcf9598f8141eaafd3808e532b1ff463e0ee1d2192350c339653e29ebcda8c7eafa35854310ed5802f88
|
data/lib/print_r/parser.rb
CHANGED
@@ -16,7 +16,7 @@ module PrintR
|
|
16
16
|
def _to_object(str, indent)
|
17
17
|
str = str.strip
|
18
18
|
tab = " " * indent
|
19
|
-
md = str.match(/^(?:Array|.*? Object)\n#{tab}\(\n(
|
19
|
+
md = str.match(/^(?:Array|.*? Object)\n#{tab}\(\n(.*)#{tab}\)$/m)
|
20
20
|
if md
|
21
21
|
obj = _to_key_values(md[1].split(/(\r\n|\r|\n)/), indent+1)
|
22
22
|
|
data/lib/print_r/version.rb
CHANGED