|
|
@ -559,8 +559,8 @@
|
|
|
|
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|'+ // domain name
|
|
|
|
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|'+ // domain name
|
|
|
|
'((\\d{1,3}\\.){3}\\d{1,3}))'+ // OR ip (v4) address
|
|
|
|
'((\\d{1,3}\\.){3}\\d{1,3}))'+ // OR ip (v4) address
|
|
|
|
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ // port and path
|
|
|
|
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ // port and path
|
|
|
|
'(\\?[;&a-z\\d%_.~+=-]*)?'+ // query string
|
|
|
|
'(\\?[;&a-z\\d%_.~+=-]*)?'); // query string
|
|
|
|
'(\\#[-a-z\\d_]*)?$','i'); // fragment locator
|
|
|
|
//'(\\#[-a-z\\d_]*)?$','i'); // fragment locator
|
|
|
|
return !!pattern.test(str);
|
|
|
|
return !!pattern.test(str);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|