(string: string)
| 92 | * Returns true if the string consistently uses Windows line endings. |
| 93 | */ |
| 94 | export function hasOnlyWinLineEndings(string: string): boolean { |
| 95 | return string.includes('\r\n') && !string.startsWith('\n') && !string.match(/[^\r]\n/); |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Returns true if the string consistently uses Unix line endings. |
no outgoing calls
no test coverage detected