mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2025-04-03 06:21:05 +03:00
3 lines
83 B
TypeScript
3 lines
83 B
TypeScript
export function sqlLikeEscape(s: string) {
|
|
return s.replace(/([%_])/g, '\\$1');
|
|
}
|