blob: 0c052556744e03ff932839a50eb6c07c46081952 (
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');
}
|