From e50ea6ffea8e0f9879a061119382e844a7f23346 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 18 Jan 2015 23:24:20 +0000 Subject: [PATCH] whoops proper regexp fix for listNumber --- src/node/utils/ExportHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/utils/ExportHelper.js b/src/node/utils/ExportHelper.js index 7a81bbbfa..297c2d7a6 100644 --- a/src/node/utils/ExportHelper.js +++ b/src/node/utils/ExportHelper.js @@ -55,7 +55,7 @@ exports._analyzeLine = function(text, aline, apool){ var listType = Changeset.opAttributeValue(opIter.next(), 'list', apool); if (listType){ lineMarker = 1; - listType = /([a-z]+)([0-9+])/.exec(listType); + listType = /([a-z]+)([0-9]+)/.exec(listType); if (listType){ line.listTypeName = listType[1]; line.listLevel = Number(listType[2]);