4 lines
83 B
TypeScript
4 lines
83 B
TypeScript
|
export function sqlLikeEscape(s: string) {
|
||
|
return s.replace(/([%_])/g, '\\$1');
|
||
|
}
|