make handles lowercase (#8233)
This commit is contained in:
@@ -28,7 +28,7 @@ export function isInvalidHandle(handle: string): boolean {
|
||||
export function sanitizeHandle(handle: string, prefix = ''): string {
|
||||
return isInvalidHandle(handle)
|
||||
? '⚠Invalid Handle'
|
||||
: forceLTR(`${prefix}${handle}`)
|
||||
: forceLTR(`${prefix}${handle.toLocaleLowerCase()}`)
|
||||
}
|
||||
|
||||
export interface IsValidHandle {
|
||||
|
||||
Reference in New Issue
Block a user