commitplease
Advanced tools
Comparing version 2.7.3-0 to 2.7.3-1
@@ -23,3 +23,3 @@ var fs = require('fs') | ||
} else if (/ENOTDIR/.test(err.message)) { | ||
console.error('Will not install in a git submodule') | ||
console.log('Will not install in a git submodule') | ||
process.exit(0) | ||
@@ -26,0 +26,0 @@ } else { |
@@ -5,16 +5,17 @@ var process = require('child_process') | ||
try { | ||
comment = process.execSync(command).toString().trim() | ||
} catch (error) { | ||
// errors.status === 1 if the following: | ||
// a) 'core.commentchar' has not been set (git defaults it to #) | ||
// b) this is not a git repository | ||
// c) maybe something else? | ||
if (error.status !== 1) { | ||
throw error | ||
var scissor = /# ------------------------ >8 ------------------------[\s\S]+/ | ||
module.exports = function (value) { | ||
try { | ||
comment = process.execSync(command).toString().trim() | ||
} catch (error) { | ||
// errors.status === 1 if the following: | ||
// a) 'core.commentchar' has not been set (git defaults it to #) | ||
// b) this is not a git repository | ||
// c) maybe something else? | ||
if (error.status !== 1) { | ||
throw error | ||
} | ||
} | ||
} | ||
var scissor = /# ------------------------ >8 ------------------------[\s\S]+/ | ||
module.exports = function (value) { | ||
var isComment = new RegExp('^' + comment) | ||
@@ -21,0 +22,0 @@ return value.replace(scissor, '').split(/\n/).filter(function (line) { |
{ | ||
"name": "commitplease", | ||
"version": "2.7.3-0", | ||
"version": "2.7.3-1", | ||
"description": "Validates strings as commit messages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44910