We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f4bed4 commit a4cdae1Copy full SHA for a4cdae1
src/properties.ts
@@ -34,7 +34,8 @@ export const empty = (): Properties => ({lines: []})
34
* @return Parsed configuration.
35
*/
36
export const parse = (contents: string): Properties => {
37
- const lines = contents.split(/\r?\n/)
+ // NOTE all line separators are valid - LF, CRLF, CR
38
+ const lines = contents.split(/\r|\r?\n/)
39
40
// Remove last line, if empty
41
if (lines.length > 0 && lines[lines.length - 1].length === 0) {
0 commit comments