mirror of
https://github.com/paricafe/misskey.git
synced 2025-02-27 17:54:25 -06:00
8 lines
124 B
TypeScript
8 lines
124 B
TypeScript
![]() |
export function safeURIDecode(str: string): string {
|
||
|
try {
|
||
|
return decodeURIComponent(str);
|
||
|
} catch {
|
||
|
return str;
|
||
|
}
|
||
|
}
|