|
Browse by Tags
All Tags » javascript » out of the box thinking » why_the_fuck (RSS)
-
..though this is wrong in any language: var lastChar = str.charAt(emailStr.length - 1); if(!lastChar.match(/[^\.]/i)) { return false; } Rarely do I think " w... t... F???! , but this was one of those times. I guess if( str[str.length-1] == '.' ) return false; wouldn't be case insensitive...
Page 1 of 1 (1 items)
|
|
|