Fix bug loading flac workflow when it contains = character.
This commit is contained in:
parent
bfb52de866
commit
17bbd83176
|
@ -190,9 +190,10 @@ function parseVorbisComment(dataView) {
|
||||||
const comment = getString(dataView, offset, commentLength);
|
const comment = getString(dataView, offset, commentLength);
|
||||||
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;
|
return comments;
|
||||||
|
|
Loading…
Reference in New Issue