Basically, yeah. That's a good way to put it - it's doing an implicit trim.

The string going into the IsValid is a legit email, followed by some 
other characters - not just spaces.

Those extra charactesrs *should* trip the validation and return false - 
but it's not. And even if it were spaces on the end, that should trip a 
false result as well.

And yes, I also tend to trim strings as a general rule. But these are 
getting in due to doing bulk-inserts using SQL Server.

Judah McAuley wrote:
> I'm not entirely sure what you are considering as a bug here. Are you
> saying that the isValid is doing a Trim implicitly and you think it
> shouldn't? I don't think I'd call that a bug, myself. When I write
> validation routines, I tend to trim strings automatically before
> running my validation against them, that's just common practice. I
> would expect Adobe to do so in its built-in functions.
>
> Judah
>
>   


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328806
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to