fix: removed duplicated "'" character in .replace function

This commit is contained in:
Pierre
2025-03-11 17:01:14 +01:00
committed by HiItsStolas
parent c6fc576f1e
commit f535b08f0b

View File

@@ -138,7 +138,7 @@ class TmdbPersonMapper extends ExternalAPI {
const cleanArtistName = artistName
.split(/(?:(?:feat|ft)\.?\s+|&\s*|,\s+)/i)[0]
.trim()
.replace(/['']/g, "'");
.replace(/[']/g, "'");
const searchResults = await this.get<TmdbSearchPersonResponse>(
'/search/person',
@@ -156,7 +156,7 @@ class TmdbPersonMapper extends ExternalAPI {
.toLowerCase()
.normalize('NFKD')
.replace(/[\u0300-\u036f]/g, '')
.replace(/['']/g, "'")
.replace(/[']/g, "'")
.replace(/[^a-z0-9\s]/g, '')
.trim();
};