Make to_title work correctly; patch thanks to Shiv2503.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1440 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2010-04-14 22:33:43 +00:00
parent 85854b1bd2
commit 80f815b9ce
+1 -1
View File
@@ -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