fix(client): fix url encoded string handling of nirax

Fix #8878
This commit is contained in:
syuilo 2022-07-13 18:11:54 +09:00
parent dd4f7be3da
commit ad970dffda
4 changed files with 18 additions and 15 deletions

View file

@ -0,0 +1,7 @@
export function safeURIDecode(str: string): string {
try {
return decodeURIComponent(str);
} catch {
return str;
}
}