Now recognizing with and without protocol
This commit is contained in:
parent
86f4cd00ea
commit
1624e666e8
|
@ -284,7 +284,7 @@ function checkKnownProviders(target) {
|
||||||
target
|
target
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const amazonID = target.match(/https?:\/\/(www|smile|)\.?(amazon|smile)\.(de)(?:(?:\/.*\/|\/)(?:dp|gp))(\/product\/|\/)([A-Z0-9]+)/);
|
const amazonID = target.match(/(?:https?:\/\/|)(www|smile|)\.?(amazon|smile)\.(de)(?:(?:\/.*\/|\/)(?:dp|gp))(\/product\/|\/)([A-Z0-9]+)/);
|
||||||
if (amazonID) {
|
if (amazonID) {
|
||||||
const shortcode = `a/${amazonID[5]}`
|
const shortcode = `a/${amazonID[5]}`
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue