Commit af93a541 authored by coppro's avatar coppro

Make to_title work correctly; patch thanks to Shiv2503.

parent e4ca68e6
......@@ -266,7 +266,7 @@ SCRIPT_FUNCTION(to_lower) {
// convert a string to title case
SCRIPT_FUNCTION(to_title) {
SCRIPT_PARAM_C(String, input);
SCRIPT_RETURN(capitalize(input));
SCRIPT_RETURN(capitalize(input.Lower()));
}
// reverse a string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment