BTW if(location.href.search(/^https?:\/\/www.site.com/)==0){...}. you're doing it wrong.. guess why.
-
-
@avlidienbrunn that's good as well. Still not enough, means /$|\// needs some more. -
@WisecWisec Means should use document.domain instead of regular expressions ;) -
@avlidienbrunn :) depends where you need the regexp to be applied. still flawed if you look at unescaped dots. -
@WisecWisec ah, true! Forgetting i flag when using regex as blacklist is also common mistake :)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.