diff --git a/Zotero.php b/Zotero.php index 786daf27fc..428bef8d94 100644 --- a/Zotero.php +++ b/Zotero.php @@ -2097,7 +2097,7 @@ public static function find_indentifiers_in_urls(Template $template, ?string $ur return true; } /// THIS MUST BE LAST - } elseif (($template->has('chapterurl') || $template->has('chapter-url') || $template->has('url') || ($url_type === 'url') || ($url_type === 'chapterurl') || ($url_type === 'chapter-url')) && preg_match("~^https?://web\.archive\.org/web/\d{14}/(https?://.*)$~", $url, $match) && $template->blank(['archiveurl', 'archive-url'])) { + } elseif (($template->has('chapterurl') || $template->has('chapter-url') || $template->has('url') || ($url_type === 'url') || ($url_type === 'chapterurl') || ($url_type === 'chapter-url')) && preg_match("~^https?://web\.archive\.org/web/\d{14}(?:|fw_)/(https?://.*)$~", $url, $match) && $template->blank(['archiveurl', 'archive-url'])) { if (is_null($url_sent)) { quietly('report_modification', 'Extracting URL from archive'); $template->set($url_type, $match[1]);