From 75bbc85952031514d510d9f8bd4307ede58d2e35 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 20 Dec 2021 21:55:56 -0400 Subject: crlf hell pt. I --- src/upd8.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/upd8.js b/src/upd8.js index 069292f3..2319c13a 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -768,7 +768,7 @@ async function processAlbumDataFile(file) { // We'll just return more specific errors if it's missing necessary data // fields. - const contentLines = contents.split('\n'); + const contentLines = contents.split(/\r\n|\r|\n/); // In this line of code I defeat the purpose of using a generator in the // first place. Sorry!!!!!!!! -- cgit 1.3.0-6-gf8a5