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); } /**