mirror of
https://github.com/zoriya/flood.git
synced 2026-06-08 12:42:41 +00:00
03d3943974
* add cdata regex * remove cdata via regex * add trailing comma * fix no-useless-escape * switch let to const
8 lines
246 B
JavaScript
8 lines
246 B
JavaScript
const regEx = {
|
|
url: /^(?:https?|ftp):\/\/.{1,}\.{1}.{1,}/,
|
|
domainName: /(?:https?|udp):\/\/(?:www\.)?([-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,18}\b)*(\/[/\d\w.-]*)*(?:[?])*(.+)*/i,
|
|
cdata: /<!\[CDATA\[(.*?)\]\]>/,
|
|
};
|
|
|
|
module.exports = regEx;
|