Fixed issue reading/writing YAML

This commit is contained in:
Shoghi Cervantes 2015-04-27 21:26:50 +02:00
parent 84d1f4596b
commit 488fbc27fe
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

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