From c2e1d5ba49de2e8df407fa66a87627841300c43b Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Wed, 4 May 2022 10:19:28 +0200 Subject: [PATCH] =?UTF-8?q?do=20not=20escape=20=C3=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scraper/lib/metadata.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/lib/metadata.js b/scraper/lib/metadata.js index 39039d0..c31b659 100644 --- a/scraper/lib/metadata.js +++ b/scraper/lib/metadata.js @@ -82,7 +82,7 @@ function escapeTitle(title) { .replace(/[\u0300-\u036F]/g, '') .replace(/&/g, 'and') .replace(/[;, ~./]+/g, ' ') // replace dots, commas or underscores with spaces - .replace(/[^\w \-()+#@!'\u0400-\u04ff]+/g, '') // remove all non-alphanumeric chars + .replace(/[^\w \-()×+#@!'\u0400-\u04ff]+/g, '') // remove all non-alphanumeric chars .replace(/^\d{1,2}[.#\s]+(?=(?:\d+[.\s]*)?[\u0400-\u04ff])/i, '') // remove russian movie numbering .replace(/\s{2,}/, ' ') // replace multiple spaces .trim();