Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

commitplease

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commitplease - npm Package Compare versions

Comparing version 2.7.3-2 to 2.7.3-3

24

lib/sanitize.js

@@ -1,27 +0,5 @@

var process = require('child_process')
var command = 'git config --get core.commentchar'
var scissor = /# ------------------------ >8 ------------------------[\s\S]+/
var comment = null
function initComment () {
try {
comment = process.execSync(command).toString().trim()
} catch (error) {
comment = '#'
// console.log('Suppressing an error from ' + command)
// console.log('Possible reasons for error:')
// console.log(' 1. "core.commentchar" defaults to #')
// console.log(' 2. This is *not* a git repository')
// console.log(' 3. This is a git submodule')
// console.log('Maybe something else, no reliable way to know')
}
}
module.exports = function (value) {
if (comment === null) initComment()
var isComment = new RegExp('^' + comment)
var isComment = new RegExp('^#')
return value.replace(scissor, '').split(/\n/).filter(function (line) {

@@ -28,0 +6,0 @@ return !isComment.test(line)

2

package.json
{
"name": "commitplease",
"version": "2.7.3-2",
"version": "2.7.3-3",
"description": "Validates strings as commit messages",

@@ -5,0 +5,0 @@ "main": "index.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