mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-11-18 14:54:03 +01: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