Fixing Regex escaping
This commit is contained in:
parent
53d93f5e86
commit
d2313e4f2e
|
@ -75,7 +75,6 @@ function validURL(str) {
|
|||
}
|
||||
|
||||
function filterList(oldList) {
|
||||
|
||||
oldList.filter((x) => x.trim() != "");
|
||||
let newList = [];
|
||||
oldList.forEach((c) => {
|
||||
|
|
|
@ -2,19 +2,18 @@ import commonHelper from './common.js'
|
|||
|
||||
|
||||
const targets = [
|
||||
// /(.*\.medium\.com)?(?(1)|^medium\.com)/,
|
||||
/^medium.com/,
|
||||
/.*\.medium.com/,
|
||||
/^medium\.com/,
|
||||
/.*\.medium\.com/,
|
||||
// Other domains of medium blogs, source(s): https://findingtom.com/best-medium-blogs-to-follow/#1-forge
|
||||
/towardsdatascience.com/,
|
||||
/uxdesign.cc/,
|
||||
/uxplanet.org/,
|
||||
/betterprogramming.pub/,
|
||||
/aninjusticemag.com/,
|
||||
/betterhumans.pub/,
|
||||
/psiloveyou.xyz/,
|
||||
/entrepreneurshandbook.co/,
|
||||
/blog.coinbase.com/
|
||||
/towardsdatascience\.com/,
|
||||
/uxdesign\.cc/,
|
||||
/uxplanet\.org/,
|
||||
/betterprogramming\.pub/,
|
||||
/aninjusticemag\.com/,
|
||||
/betterhumans\.pub/,
|
||||
/psiloveyou\.xyz/,
|
||||
/entrepreneurshandbook\.co/,
|
||||
/blog\.coinbase\.com/
|
||||
];
|
||||
|
||||
const redirects = {
|
||||
|
|
Loading…
Reference in New Issue