Skip to content

Commit 17bbd83

Browse files
Fix bug loading flac workflow when it contains = character.
1 parent bfb52de commit 17bbd83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/scripts/pnginfo.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,10 @@ function parseVorbisComment(dataView) {
190190
const comment = getString(dataView, offset, commentLength);
191191
offset += commentLength;
192192

193-
const [key, value] = comment.split('=');
193+
const ind = comment.indexOf('=')
194+
const key = comment.substring(0, ind);
194195

195-
comments[key] = value;
196+
comments[key] = comment.substring(ind+1);
196197
}
197198

198199
return comments;

0 commit comments

Comments
 (0)