Comparing version 1.2.0 to 1.2.1
//test for comments that have todo/fixme + text | ||
var rCommentsValidator = /^\s*#\s*(todo|fixme)[\s:]+(.+?)$/mig; | ||
var rCommentsValidator = /^\s*#\s*@?(todo|fixme)[\s:]+(.+?)$/mig; | ||
@@ -4,0 +4,0 @@ module.exports = function (contents) { |
'use strict'; | ||
var getLineFromPos = require('get-line-from-pos'); | ||
//test for comments that have todo/fixme + text | ||
var rLineComment = /^\s*\/\/\s*(todo|fixme)[\s:]+(.+)/mig; | ||
var rLineComment = /^\s*\/\/\s*@?(todo|fixme)[\s:]+(.+)/mig; | ||
var rBlockComment = /\/\*(?:[\s\S]*?)\*\//gmi; | ||
var rInnerBlock = /^\s*(?:\/\*)?\**!?\s(todo|fixme)[\s:]+(.+?)\s*(?:\**\/)?$/gi; | ||
var rInnerBlock = /^\s*(?:\/\*)?\**!?\s@?(todo|fixme)[\s:]+(.+?)\s*(?:\**\/)?$/gi; | ||
@@ -8,0 +8,0 @@ module.exports = function (contents) { |
//test for comments that have todo/fixme + text | ||
var rCommentsValidator = /{{!(?:--)?\s*(todo|fixme)[\s:]+(.+?)\s*(?:--)?}}/mig; | ||
var rCommentsValidator = /{{!(?:--)?\s*@?(todo|fixme)[\s:]+(.+?)\s*(?:--)?}}/mig; | ||
@@ -4,0 +4,0 @@ module.exports = function(contents) { |
//test for comments that have todo/fixme + text | ||
var rCommentsValidator = /^\s*\/\/-?\s*(todo|fixme)[\s:]+(.+)/i; | ||
var rCommentsValidator = /^\s*\/\/-?\s*@?(todo|fixme)[\s:]+(.+)/i; | ||
@@ -4,0 +4,0 @@ module.exports = function (contents) { |
{ | ||
"name": "leasot", | ||
"description": "Parse and output TODOs and FIXMEs from comments in your files", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"author": "Gilad Peleg <giladp007@gmail.com> (http://giladpeleg.com)", | ||
@@ -6,0 +6,0 @@ "bin": "./bin/leasot.js", |
25914