Merge branch 'release/3.1' into release/3.2

This commit is contained in:
Dylan K. Taylor
2018-08-19 11:22:58 +01:00
2 changed files with 72 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class Config{
* @return string
*/
public static function fixYAMLIndexes(string $str) : string{
return preg_replace("#^([ ]*)([a-zA-Z_]{1}[ ]*)\\:$#m", "$1\"$2\":", $str);
return preg_replace("#^( *)(y|Y|yes|Yes|YES|n|N|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)( *)\:#m", "$1\"$2\"$3:", $str);
}
/**