mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-09-21 03:29:35 +02:00
Fix problem with "|" character in game title
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user