mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 19:53:09 +02:00
8 lines
124 B
TypeScript
8 lines
124 B
TypeScript
|
export function safeURIDecode(str: string): string {
|
||
|
try {
|
||
|
return decodeURIComponent(str);
|
||
|
} catch {
|
||
|
return str;
|
||
|
}
|
||
|
}
|