mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-12 10:06:43 -06:00
c1514ce91d
Fix #13290
12 lines
228 B
TypeScript
12 lines
228 B
TypeScript
/*
|
|
* 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;
|
|
}
|
|
}
|