From 7754aa71a3e29692b9c7d591447121452dc01abd Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 29 Apr 2015 21:09:35 +0200 Subject: [PATCH] Fixed end of regex on Config --- src/pocketmine/utils/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/utils/Config.php b/src/pocketmine/utils/Config.php index 9f4d696d0..38364e2e9 100644 --- a/src/pocketmine/utils/Config.php +++ b/src/pocketmine/utils/Config.php @@ -93,7 +93,7 @@ class Config{ * @return mixed */ public static function fixYAMLIndexes($str){ - return preg_replace("#^([ ]*)([a-zA-Z_]{1}[ ]*)$\\:#m", "$1\"$2\":", $str); + return preg_replace("#^([ ]*)([a-zA-Z_]{1}[ ]*)\\:$#m", "$1\"$2\":", $str); } /**