whoops proper regexp fix for listNumber

This commit is contained in:
John McLear 2015-01-18 23:24:20 +00:00
parent bd9ff770fe
commit e50ea6ffea

View file

@ -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]);