fix: remove duplicate function

This commit is contained in:
Shivam Mishra 2020-05-04 16:05:53 +05:30
parent 23e3957534
commit 7eeccaaefc

View file

@ -777,11 +777,6 @@ Object.assign(frappe.utils, {
name: M[0],
version: M[1],
};
},
is_url(string) {
const url_regex = new RegExp(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/gi);
return Boolean(string.match(url_regex));
}
});