Adjusting some frontend tests

This commit is contained in:
2021-06-26 14:33:58 +02:00
parent b1db97af87
commit 4a7ef6d637
24 changed files with 370 additions and 169 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ export class ApiService {
let asin = '';
// Check if the parameter is a link or an asin
const linkRegex: RegExp = /^http[s]{0,1}:\/\/.*\/dp\/(.[^\/]*)\/{0,1}.*$/;
const linkRegex: RegExp = /^http[s]?:\/\/.*\/dp\/(.[^\/]*)\/?.*$/;
const matches = linkRegex.exec(asinOrLink);
if (matches) {
// param is a link, extract asin