whoops proper regexp fix for listNumber

pull/2467/head
John McLear 2015-01-18 23:24:20 +00:00
parent bd9ff770fe
commit e50ea6ffea
1 changed files with 1 additions and 1 deletions

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