convert
Converts various strings to booleans, by using regex, to allow for more variations in input.
Converted to TRUE are:
[Tt]rue1[Yy]es[Yy]Language Key
cli.input.trueLanguage Key
cli.input.yesLanguage Key
cli.input.yes.short
Converted to FALSE are:
[Ff]alse0[Nn]o[Nn]Language Key
cli.input.falseLanguage Key
cli.input.noLanguage Key
cli.input.no.short
Return
Returns the corresponding boolean if match with pattern was found. If no match is found, assume and return false.
Author
Griefed
Parameters
string Boolean
The string which should be converted to boolean if it matches certain patterns.