mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 01:16:15 +00:00
Fixed issue reading/writing YAML
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user