New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

leasot

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leasot - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

lib/parsers/coffeeParser.js
//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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc