From 17bbd83176268c76a8597bb3a88768d325536651 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Fri, 2 Aug 2024 13:14:28 -0400 Subject: [PATCH] Fix bug loading flac workflow when it contains = character. --- web/scripts/pnginfo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/scripts/pnginfo.js b/web/scripts/pnginfo.js index 8b1b2c61..4477ed7a 100644 --- a/web/scripts/pnginfo.js +++ b/web/scripts/pnginfo.js @@ -190,9 +190,10 @@ function parseVorbisComment(dataView) { const comment = getString(dataView, offset, commentLength); offset += commentLength; - const [key, value] = comment.split('='); + const ind = comment.indexOf('=') + const key = comment.substring(0, ind); - comments[key] = value; + comments[key] = comment.substring(ind+1); } return comments;