summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts/safe-uri-decode.ts
blob: 301b56d7fdb298b82b5e2bafea7e1c8bc1b584fc (plain)
1
2
3
4
5
6
7
export function safeURIDecode(str: string): string {
	try {
		return decodeURIComponent(str);
	} catch {
		return str;
	}
}