mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-24 11:38:09 +09:00
65ec13a137
Fix #8878
8 lines
124 B
TypeScript
8 lines
124 B
TypeScript
export function safeURIDecode(str: string): string {
|
|
try {
|
|
return decodeURIComponent(str);
|
|
} catch {
|
|
return str;
|
|
}
|
|
}
|