summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-01-18 23:24:20 +0000
committerJohn McLear <john@mclear.co.uk>2015-01-18 23:24:20 +0000
commite50ea6ffea8e0f9879a061119382e844a7f23346 (patch)
treeb014f49dcdd4313eeddf0d5a560f33d8ec4ae4ac
parentbd9ff770fe9f6efeba07a57e0a870ca7ecad1774 (diff)
downloadetherpad-lite-e50ea6ffea8e0f9879a061119382e844a7f23346.zip
whoops proper regexp fix for listNumber
-rw-r--r--src/node/utils/ExportHelper.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/utils/ExportHelper.js b/src/node/utils/ExportHelper.js
index 7a81bbbf..297c2d7a 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]);