feat: improve profile navigation and responsive privacy UX
This commit is contained in:
5
src/lib/digits.ts
Normal file
5
src/lib/digits.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export function toEnglishDigits(value: string): string {
|
||||
return value
|
||||
.replace(/[\u06F0-\u06F9]/g, (digit) => String(digit.charCodeAt(0) - 0x06f0))
|
||||
.replace(/[\u0660-\u0669]/g, (digit) => String(digit.charCodeAt(0) - 0x0660));
|
||||
}
|
||||
Reference in New Issue
Block a user