blob: 0edf4e9eba0f32f6bded54812f4a71afb74a1379 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export function safeURIDecode(str: string): string {
try {
return decodeURIComponent(str);
} catch {
return str;
}
}
|