mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-17 06:59:01 +01:00
311c2172d7
This reverts commit 9b5aeb76d8
.
8 lines
220 B
TypeScript
8 lines
220 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export function safeForSql(text: string): boolean {
|
|
return !/[\0\x08\x09\x1a\n\r"'\\\%]/g.test(text);
|
|
}
|