From 144fc5847884b38e08f25bc3a2e080897bfb21ad Mon Sep 17 00:00:00 2001 From: Buzz Date: Wed, 15 Jan 2020 17:08:42 +1000 Subject: [PATCH] bugfix for incorrect string parsing of strings longer than 1 character --- jspack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jspack.js b/jspack.js index 7e7965b..000c74b 100644 --- a/jspack.js +++ b/jspack.js @@ -165,7 +165,7 @@ function JSPack() { }; // Class data - m._sPattern = '(\\d + )?([AxcbBhHsfdiIlLqQ])'; + m._sPattern = '(\\d+)?([AxcbBhHsfdiIlLqQ])'; m._lenLut = {'A': 1, 'x': 1, 'c': 1, 'b': 1, 'B': 1, 'h': 2, 'H': 2, 's': 1, 'f': 4, 'd': 8, 'i': 4, 'I': 4, 'l': 4, 'L': 4, 'q': 8, 'Q': 8 };