Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -468,7 +468,7 @@ |
469 | 469 | jQuery.fn.validateURLField = function() { |
470 | 470 | var fieldVal = this.find("input").val(); |
471 | 471 | // code borrowed from http://snippets.dzone.com/posts/show/452 |
472 | | - var url_regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/; |
| 472 | + var url_regexp = /(ftp|http|https|rtsp):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/; |
473 | 473 | if (fieldVal == "" || url_regexp.test(fieldVal)) { |
474 | 474 | return true; |
475 | 475 | } else { |