From 0f4f19522e6ed24b26a6224157102e352b5c1c5d Mon Sep 17 00:00:00 2001 From: Leonel Quinteros Date: Fri, 27 Mar 2015 18:23:53 -0300 Subject: [PATCH] Remove debug prints --- src/Toml.php | 3 +-- toml-test/debug.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 toml-test/debug.php diff --git a/src/Toml.php b/src/Toml.php index 4ef0926..bd426d5 100755 --- a/src/Toml.php +++ b/src/Toml.php @@ -77,7 +77,6 @@ class Toml // Split lines $aToml = explode("\n", $toml); - print_r($aToml); //foreach($aToml as $line) for($ln = 0; $ln < count($aToml); $ln++) @@ -310,7 +309,7 @@ class Toml $openLString = !$openLString; } } - elseif($toml[$i] == "\\" && !in_array($toml[$i+1], array('0', 't', 'n', 'r', "u", '"', "\\"))) + elseif($toml[$i] == "\\" && !in_array($toml[$i+1], array('0', 't', 'n', 'r', "u", "U", '"', "\\"))) { // Reserved special characters inside strings should produce error if($openString) diff --git a/toml-test/debug.php b/toml-test/debug.php new file mode 100644 index 0000000..49a1a74 --- /dev/null +++ b/toml-test/debug.php @@ -0,0 +1,10 @@ +