Use a regex when checking for external urls. It's concise and DRY, less prone to...
authorDaniel Friesen <dantman@users.mediawiki.org>
Fri, 12 Aug 2011 10:20:17 +0000 (10:20 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Fri, 12 Aug 2011 10:20:17 +0000 (10:20 +0000)
commit57c33820a97397ce90932febab26ced25ef2420e
treeb933f047226427fa03a956f49a61186896f268a5
parent975666e7d50dd8787ce8c097ffb8b491516e403d
Use a regex when checking for external urls. It's concise and DRY, less prone to bugs like "Whoops I got that hardcoded length int wrong and created a condition that'll never be true",... and it's 4 time faster ;)
resources/mediawiki/mediawiki.js