Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -483,7 +483,7 @@ |
484 | 484 | jQuery.fn.validateURLField = function() { |
485 | 485 | var fieldVal = this.find("input").val(); |
486 | 486 | // code borrowed from http://snippets.dzone.com/posts/show/452 |
487 | | - var url_regexp = /(ftp|http|https|rtsp):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/; |
| 487 | + var url_regexp = /(ftp|http|https|rtsp|news):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/; |
488 | 488 | if (fieldVal == "" || url_regexp.test(fieldVal)) { |
489 | 489 | return true; |
490 | 490 | } else { |