mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-04 11:47:27 +00:00
10e526ba56
* SQL LIKE escape * CHANGELOG
3 lines
83 B
TypeScript
3 lines
83 B
TypeScript
export function sqlLikeEscape(s: string) {
|
|
return s.replace(/([%_])/g, '\\$1');
|
|
}
|