(pattern: string)
| 172 | * Replaces _actual newline_ in the pattern with escaped newline. |
| 173 | */ |
| 174 | export function fixNewline(pattern: string): string { |
| 175 | return pattern.replace(/\n/g, "\\r?\\n"); |
| 176 | } |
| 177 | |
| 178 | // @todo VSCode RipgrepTextSearchProvider fixes regex with the following code |
| 179 | // export function fixRegexNewline(pattern: string): string { |
no outgoing calls