mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 19:11:14 +00:00
Add support for long TLDs
Some trackers use top-level domains with more than 6 characters. At the moment, the longest non-IDN TLD is 18-characters long (http://data.iana.org/TLD/tlds-alpha-by-domain.txt).
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
const regEx = {
|
||||
domainName: /https?:\/\/(?:www\.)?([-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b)*(\/[\/\d\w\.-]*)*(?:[\?])*(.+)*/gi
|
||||
domainName: /https?:\/\/(?:www\.)?([-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,18}\b)*(\/[\/\d\w\.-]*)*(?:[\?])*(.+)*/gi
|
||||
};
|
||||
|
||||
module.exports = regEx;
|
||||
|
||||
Reference in New Issue
Block a user