mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-20 17:48:11 +09:00
8 lines
124 B
TypeScript
8 lines
124 B
TypeScript
|
export function safeURIDecode(str: string): string {
|
||
|
try {
|
||
|
return decodeURIComponent(str);
|
||
|
} catch {
|
||
|
return str;
|
||
|
}
|
||
|
}
|