Fix problem with "|" character in game title

This commit is contained in:
redphx
2024-09-04 20:19:31 +07:00
parent 8d44dab04d
commit e952bf07c8
3 changed files with 3 additions and 3 deletions

View File

@@ -113,6 +113,7 @@ export async function copyToClipboard(text: string, showToast=true): Promise<boo
export function productTitleToSlug(title: string): string {
return title.replace(/[;,/?:@&=+_`~$%#^*()!^\u2122\xae\xa9]/g, '')
.replace(/\|/g, '-')
.replace(/ {2,}/g, ' ')
.trim()
.substr(0, 50)