Skip to content

Commit 8a32bba

Browse files
author
Matt Clements
committed
Changes to allow https:// and ftp:// links to be added
1 parent ed01f1b commit 8a32bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.formvalidator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ jQueryFormUtils.simpleSpamCheck = function(val, classAttr) {
560560
* @return {Boolean}
561561
*/
562562
jQueryFormUtils.validateDomain = function(val) {
563-
val = val.replace('http://', '').replace('www.', '');
563+
val = val.replace('ftp://', '').replace('https://', '').replace('http://', '').replace('www.', '');
564564
var arr = new Array('.com', '.net', '.org', '.biz', '.coop', '.info', '.museum', '.name', '.pro',
565565
'.edu', '.gov', '.int', '.mil', '.ac', '.ad', '.ae', '.af', '.ag', '.ai', '.al',
566566
'.am', '.an', '.ao', '.aq', '.ar', '.as', '.at', '.au', '.aw', '.az', '.ba', '.bb',

0 commit comments

Comments
 (0)