From 488fbc27fe85a98da6960cf9c7999c10fbc42d82 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 27 Apr 2015 21:26:50 +0200 Subject: [PATCH] Fixed issue reading/writing YAML --- 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 13325fade..9f4d696d0 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); } /**