Added ebay provider recognition
This commit is contained in:
parent
1624e666e8
commit
12c6d7e3da
|
@ -293,6 +293,15 @@ function checkKnownProviders(target) {
|
|||
target
|
||||
}
|
||||
}
|
||||
const ebayID = target.match(/(?:[ebay]*(?:[\/]|[itm=])|^)([0-9]{9,12})/);
|
||||
if (ebayID) {
|
||||
const shortcode = `e/${ebayID[1]}`
|
||||
return {
|
||||
url: `${config.getBaseUrl()}/${shortcode}`,
|
||||
shortcode,
|
||||
target
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue