Page 1 of 1

Minor programming bug in StringHelper

Posted: Sat Dec 15, 2007 5:00 pm
by AbleMods
The StringHelper.InitialCase() function bombs if the string has any leading or trailing spaces.
StringHelper.InitialCase(" Hello") bombs
StringHelper.InitialCase("Hello ") bombs

StringHelper.InitialCase(" Hello ".Trim) fixes it

You guys probably already knew that but thought I'd share the info just in case there might be a free Pepsi involved ;)

Posted: Thu Dec 20, 2007 9:55 am
by Logan Rhodehamel
I don't think we knew. I posted the bug so we can get it corrected.

Posted: Thu Dec 20, 2007 5:41 pm
by AbleMods
No problem. I noticed a double-space bombs it too.

I think it's space-intolerate.

I must say though my new friend is AlwaysConvert - wow is that helpful!