mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-19 00:58:54 +09:00
10e526ba56
* SQL LIKE escape * CHANGELOG
4 lines
83 B
TypeScript
4 lines
83 B
TypeScript
export function sqlLikeEscape(s: string) {
|
|
return s.replace(/([%_])/g, '\\$1');
|
|
}
|