blob: 6b4f51b00e44e19b4e82977f96df3d8d81c78798 (
plain)
1
2
3
4
5
6
7
8
|
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export function sqlLikeEscape(s: string) {
return s.replace(/([\\%_])/g, '\\$1');
}
|