mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-19 00:40:27 +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);
|
|
}
|