Fixed end of regex on Config

This commit is contained in:
Shoghi Cervantes 2015-04-29 21:09:35 +02:00
parent 978aa2ba0f
commit 7754aa71a3
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);
}
/**