« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/upd8.js2
1 files changed, 1 insertions, 1 deletions
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!!!!!!!!