Open main menu

CDOT Wiki β

Changes

Vesper:scratchspace

10 bytes added, 20:47, 11 September 2008
m
no edit summary
var noun_type_url = {
_name: "Valid URL",
suggest: function( text, html ) { if (!text) return [ CmdUtils.makeSugg("http://") ];
if(/^[A-Za-z0-9]+:\/\/([A-Za-z0-9_-]+)(\.([A-Za-z0-9_-]+))+(\/([A-Za-z0-9_-~]+))+[/]?$/.test(text)){ return [ CmdUtils.makeSugg(text) ]; }
return [ CmdUtils.makeSugg("http://" + text) ]; } };
1
edit