1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2025-01-10 03:43:48 +09:00
cherrypick/packages/frontend/src/scripts/safe-uri-decode.ts

8 lines
124 B
TypeScript
Raw Normal View History

export function safeURIDecode(str: string): string {
try {
return decodeURIComponent(str);
} catch {
return str;
}
}