Skip to content

Commit

Permalink
fix: a typo in TAGString
Browse files Browse the repository at this point in the history
  • Loading branch information
XadillaX committed Feb 18, 2022
1 parent 219a052 commit 6ebc8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tags/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class TAGString extends BaseTag {
*/
setValue(value) {
if (typeof value !== 'string') value = value.toString();
if (Buffer.byteLength(this.value, 'utf8') > 65536) {
if (Buffer.byteLength(value, 'utf8') > 65536) {
throw new Error(
'Value of TAG_String\'s length should greater than 65536.');
}
Expand Down

0 comments on commit 6ebc8bb

Please sign in to comment.