Skip to content

Commit 13c0568

Browse files
committed
fix(compressor.unpack): remove ending zero chars
1 parent ab21ddb commit 13c0568

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compressor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ const unpack = string =>
4040
unescape(
4141
escape(string)
4242
.replace(/u(..)/g, '$1%')
43-
);
43+
)
44+
.replace(/\x00+$/, '');
4445

4546
/**
4647
* Return the given, packed string with the unpack signature.

0 commit comments

Comments
 (0)