mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 21:16:43 -06:00
7 lines
124 B
TypeScript
7 lines
124 B
TypeScript
export function safeURIDecode(str: string): string {
|
|
try {
|
|
return decodeURIComponent(str);
|
|
} catch {
|
|
return str;
|
|
}
|
|
}
|