* Escape LIKE pattern wildcards to prevent SQL injection
(str: string)
| 10 | * Escape LIKE pattern wildcards to prevent SQL injection |
| 11 | */ |
| 12 | function escapeLikePattern(str: string): string { |
| 13 | return str.replace(/[%_\\]/g, '\\$&'); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Database operations for Slack user mappings |