Get UDP trackers domain name

This commit is contained in:
Stéphane de Wit
2017-08-14 15:14:45 +02:00
parent e3c2f8e434
commit 72d23a3026
+1 -1
View File
@@ -2,7 +2,7 @@
const regEx = {
url: /^(?:https?|ftp):\/\/.{1,}\.{1}.{1,}/,
domainName: /https?:\/\/(?:www\.)?([-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,18}\b)*(\/[\/\d\w\.-]*)*(?:[\?])*(.+)*/i
domainName: /(?:https?|udp):\/\/(?:www\.)?([-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,18}\b)*(\/[\/\d\w\.-]*)*(?:[\?])*(.+)*/i
};
module.exports = regEx;