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 4.2.1 to 4.3.0

23

lib/utils/comments.js

@@ -9,3 +9,24 @@ var DEFAULT_TAGS = ['todo', 'fixme'];

return '\\s*@?(' + tags.join('|') + ')\\s*(?:\\(([^)]*)\\))?\\s*:?\\s*(.*?)\\s*\\s*(?:/(.*)\\s*)?';
return (
// Optional space.
'\\s*' +
// Optional `@`.
'@?' +
// One of the keywords such as `TODO` and `FIXME`.
'(' + tags.join('|') + ')' +
// Optional space.
'\\s*' +
// Optional leading reference in parens.
'(?:\\(([^)]*)\\))?' +
// Optional space.
'\\s*' +
// Optional colon `:`.
':?' +
// Optional space.
'\\s*' +
// Comment text.
'(.*?)' +
// Optional trailing reference after a space and a slash, followed by an optional space.
'(?:\\s+/([^\\s]+)\\s*)?'
);
}

@@ -12,0 +33,0 @@

2

package.json
{
"name": "leasot",
"description": "Parse and output TODOs and FIXMEs from comments in your files",
"version": "4.2.1",
"version": "4.3.0",
"author": "Gilad Peleg <giladp007@gmail.com> (http://giladpeleg.com)",

@@ -6,0 +6,0 @@ "bin": {

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