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