From dae16c50daa8b58cfede18e9cd3c1a9fd9333132 Mon Sep 17 00:00:00 2001 From: Stricted Date: Sun, 28 Jun 2015 08:57:28 +0200 Subject: [PATCH] remove useless preg_replace --- speedport.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/speedport.class.php b/speedport.class.php index 17155c0..692b7c3 100644 --- a/speedport.class.php +++ b/speedport.class.php @@ -295,9 +295,8 @@ class speedport { // fix invalid json $body = preg_replace("/(\r\n)|(\r)/", "\n", $body); $body = preg_replace('/\'/i', '"', $body); - $body = preg_replace("/},\n\n]/", "}\n]", $body); $body = preg_replace("/\[\s+\]/i", '[ {} ]', $body); - $body = preg_replace("/},\n\s+]/", "} ]", $body); + $body = preg_replace("/},\s+]/", "}\n]", $body); return array('header' => $this->parse_headers($header), 'body' => $body); } -- 2.20.1