« get me outta code hell

crlf hell pt. I - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2021-12-20 21:55:56 -0400
committer(quasar) nebula <qznebula@protonmail.com>2021-12-20 21:55:56 -0400
commit75bbc85952031514d510d9f8bd4307ede58d2e35 (patch)
tree5eb5cbbb865e0ebfb3fbdbc5ee3030df16e3ae50 /src
parent6a664063d35568b470fb137836961682ab23af60 (diff)
crlf hell pt. I
Diffstat (limited to 'src')
-rwxr-xr-xsrc/upd8.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 069292f..2319c13 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!!!!!!!!