(str: string)
| 7 | * pattern in a RegExp constructor. |
| 8 | */ |
| 9 | export function escapeRegExp(str: string): string { |
| 10 | return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') |
| 11 | } |
| 12 | |
| 13 | /** |
| 14 | * Uppercases the first character of a string, leaving the rest unchanged. |
no outgoing calls
no test coverage detected