Fix torrents with more than one tracker

'getCalculatedTrackers' method returned only the first domain.

Global regEx matching should not be used on a shared regEx instance.
This commit is contained in:
Stéphane de Wit
2016-08-12 22:37:11 +02:00
parent 0fc0fad53e
commit 60eb7b0715
+1 -1
View File
@@ -1,7 +1,7 @@
'use strict';
const regEx = {
domainName: /https?:\/\/(?:www\.)?([-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,18}\b)*(\/[\/\d\w\.-]*)*(?:[\?])*(.+)*/gi
domainName: /https?:\/\/(?:www\.)?([-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,18}\b)*(\/[\/\d\w\.-]*)*(?:[\?])*(.+)*/i
};
module.exports = regEx;