(str: string)
| 1488 | } |
| 1489 | |
| 1490 | export function escapeStringForRegex(str: string): string { |
| 1491 | return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, '\\$1'); |
| 1492 | } |
| 1493 | |
| 1494 | export function replaceAll(str: string, searchValue: string, replaceValue: string): string { |
| 1495 | const pattern: string = escapeStringForRegex(searchValue); |
no outgoing calls
no test coverage detected