summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorus2021-01-15 11:14:33 +0100
committerHorus2021-01-15 11:14:33 +0100
commit6393afb5768bab14167ce5064e16b3d090c741ef (patch)
tree6baff871e7b31ad33c5931b56d8e6835f2df20bc
parent282e26e6d3e7612e80d10c9ef178c33a8c044185 (diff)
downloaduntrack-6393afb5768bab14167ce5064e16b3d090c741ef.tar.gz
Better regexp to match amazon host.
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 469a877..1ca22fc 100644
--- a/index.php
+++ b/index.php
@@ -104,7 +104,7 @@
}
let url = new URL( _url );
- if ( url.host === "www.amazon.de" || url.host === "smile.amazon.de" ) {
+ if ( url.host.match("(www|smile)\.amazon\.([a-zA-Z]+)") ) {
if ( url.href.includes('/ref=') ) {
url.href = url.href.toString().replace(/ref=(.+)/, '')
} else {