(string: string)
| 99 | * Returns true if the string consistently uses Unix line endings. |
| 100 | */ |
| 101 | export function hasOnlyUnixLineEndings(string: string): boolean { |
| 102 | return !string.includes('\r\n') && string.includes('\n'); |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Split a string into segments using a word segmenter, merging consecutive |
no outgoing calls
no test coverage detected