mirror of
https://github.com/zoriya/flood.git
synced 2026-06-08 12:42:41 +00:00
Filter out CDATA tag for RSS feeds (#691)
* add cdata regex * remove cdata via regex * add trailing comma * fix no-useless-escape * switch let to const
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user