imdone-core
Advanced tools
Comparing version 0.1.9 to 0.2.0
@@ -244,2 +244,3 @@ var _ = require("lodash"), | ||
block = block.replace(new RegExp(HASH_STYLE_REGEX), "**TASK**"); | ||
return block; | ||
} | ||
@@ -307,6 +308,7 @@ /** | ||
if (config && !config.includeList(list)) return; | ||
log("Found a CODE_STYLE_PATTERN task: list:%s, order:%d, text:%s", list, order, text); | ||
log("Found a CODE_STYLE_PATTERN task: list:%s, order:%s, text:%s, pos:%d", list, order, text, pos); | ||
if ((text.toUpperCase() == text) || (text.replace(" ", "") === "")) return; | ||
order = (order === undefined) ? 0 : parseFloat(order); | ||
var line = (content.substring(0,pos).match(/\n/g)||[]).length + 1; | ||
var lb = content.substring(0,pos).match(/\n/g); | ||
var line = (lb||[]).length + 1; | ||
var task = new Task({ | ||
@@ -370,5 +372,6 @@ codeStyle: true, | ||
clone.replace(new RegExp(LINK_STYLE_REGEX), function(md, text, list, order, pos) { | ||
log("Found a LINK_STYLE_REGEX task: list:%s, order:%d, text:%s", list, order, text); | ||
log("Found a LINK_STYLE_REGEX task: list:%s, order:%s, text:%s, pos:%d", list, order, text, pos); | ||
if (self.isValidTask(clone, pos)) { | ||
var line = (clone.substring(0,pos).match(/\n/g)||[]).length + 1; | ||
var lb = clone.substring(0,pos).match(/\n/g); | ||
var line = (lb||[]).length + 1; | ||
var task = new Task({ | ||
@@ -393,6 +396,7 @@ text:text, | ||
clone.replace(new RegExp(HASH_STYLE_REGEX), function(md, list, order, text, pos) { | ||
log("Found a HASH_STYLE_REGEX task: list:%s, order:%d, text:%s", list, order, text); | ||
log("Found a HASH_STYLE_REGEX task: list:%s, order:%s, text:%s, pos:%d", list, order, text, pos); | ||
if (self.isValidTask(clone, pos)) { | ||
order = (order === undefined) ? 0 : parseFloat(order); | ||
var line = (clone.substring(0,pos).match(/\n/g)||[]).length + 1; | ||
var lb = clone.substring(0,pos).match(/\n/g); | ||
var line = (lb||[]).length + 1; | ||
var task = new Task({ | ||
@@ -399,0 +403,0 @@ text:text, |
{ | ||
"name": "imdone-core", | ||
"version": "0.1.9", | ||
"version": "0.2.0", | ||
"description": "imdone-core", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
91969
3122