Now recognizing with and without protocol
This commit is contained in:
parent
86f4cd00ea
commit
1624e666e8
|
@ -284,7 +284,7 @@ function checkKnownProviders(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) {
|
||||
const shortcode = `a/${amazonID[5]}`
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue