From b0d8ec281d025686063f2122d01c881aff1a2c07 Mon Sep 17 00:00:00 2001 From: Matthias Huber Date: Thu, 1 Jun 2017 22:47:26 +0200 Subject: [PATCH] fix regular expression --- lib/Parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Parser.js b/lib/Parser.js index 16297d36..1d409a6f 100644 --- a/lib/Parser.js +++ b/lib/Parser.js @@ -11,7 +11,7 @@ var CH_LF = 10, LITPLACEHOLDER = String.fromCharCode(0), EMPTY_READCB = function(n) {}, RE_INTEGER = /^\d+$/, - RE_PRECEDING = /^(?:\* |A\d+ |\+ ?)/, + RE_PRECEDING = /^(?:\* |A\d+ |^\+ ?)/, RE_BODYLITERAL = /BODY\[(.*)\] \{(\d+)\}$/i, RE_BODYINLINEKEY = /^BODY\[(.*)\]$/i, RE_SEQNO = /^\* (\d+)/,