commitplease
Advanced tools
Comparing version 2.7.3 to 2.7.4
@@ -11,3 +11,10 @@ var defaults = { | ||
'\\s+[^\\s\\d]+(\\s|$)', | ||
ticketPattern: '^(Closes|Fixes) (.*#|gh-|[A-Z]{2,}-)[0-9]+', | ||
ticketPattern: '^(' + | ||
'(([Cc]los|[Ff]ix|[Rr]esolv)(e[sd]))' + | ||
'|' + | ||
'([Cc]onnects)' + | ||
'|' + | ||
'(([Cc]onnect|[Cc]onnects|[Cc]onnected) to)' + | ||
')' + | ||
' (.*#|gh-|[A-Z]{2,}-)[0-9]+', | ||
// jQuery specific settings follow: | ||
@@ -26,3 +33,10 @@ component: true, | ||
'\\s+[^\\s\\d]+(\\s|$)', | ||
ticketPattern: '^(Closes|Fixes) (.*#|gh-|[A-Z]{2,}-)[0-9]+', | ||
ticketPattern: '^(' + | ||
'(([Cc]los|[Ff]ix|[Rr]esolv)(e[sd]))' + | ||
'|' + | ||
'([Cc]onnects)' + | ||
'|' + | ||
'(([Cc]onnect|[Cc]onnects|[Cc]onnected) to)' + | ||
')' + | ||
' (.*#|gh-|[A-Z]{2,}-)[0-9]+', | ||
// Angular specific settings follow: | ||
@@ -29,0 +43,0 @@ types: [ |
{ | ||
"name": "commitplease", | ||
"version": "2.7.3", | ||
"version": "2.7.4", | ||
"description": "Validates strings as commit messages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
60
test.js
@@ -226,2 +226,13 @@ var validate = require('./lib/validate') | ||
msg: 'Component: short message\n\n' + | ||
'fixes #1\n' + | ||
'fixes #123', | ||
reasons: new Map([ | ||
[jquery3, [ | ||
'Invalid ticket reference, must be /' + jquery3.ticketPattern + '/\nWas: fixes #1', | ||
'Invalid ticket reference, must be /' + jquery3.ticketPattern + '/\nWas: fixes #123' | ||
]] | ||
]) | ||
}, | ||
{ | ||
msg: 'Component: short message\n\n' + | ||
'Fixes #1 Fixes #123', | ||
@@ -294,2 +305,13 @@ reasons: new Map([ | ||
msg: 'Component: short message\n\n' + | ||
'closes #1\n' + | ||
'closes #123', | ||
reasons: new Map([ | ||
[jquery3, [ | ||
'Invalid ticket reference, must be /' + jquery3.ticketPattern + '/\nWas: closes #1', | ||
'Invalid ticket reference, must be /' + jquery3.ticketPattern + '/\nWas: closes #123' | ||
]] | ||
]) | ||
}, | ||
{ | ||
msg: 'Component: short message\n\n' + | ||
'Closes #1 Closes #123', | ||
@@ -413,2 +435,16 @@ reasons: new Map([ | ||
msg: 'Component: short message\n\n' + | ||
'Connect #1\n' + | ||
'Connect to #1\n' + | ||
'Connects to #1\n' + | ||
'Connected to #1' | ||
}, | ||
{ | ||
msg: 'Component: short message\n\n' + | ||
'connect #1\n' + | ||
'connect to #1\n' + | ||
'connects to #1\n' + | ||
'connected to #1' | ||
}, | ||
{ | ||
msg: 'Component: short message\n\n' + | ||
'Fixes #123\n' + | ||
@@ -597,2 +633,26 @@ 'Fixes #1 Fixes #123\n' + | ||
{ | ||
msg: 'feat($scope): subject\n\n' + | ||
'Closes #1\n' + | ||
'Closes #123' | ||
}, | ||
{ | ||
msg: 'feat($scope): subject\n\n' + | ||
'closes #1\n' + | ||
'closes #123' | ||
}, | ||
{ | ||
msg: 'feat($scope): subject\n\n' + | ||
'Connect #1\n' + | ||
'Connect to #1\n' + | ||
'Connects to #1\n' + | ||
'Connected to #1' | ||
}, | ||
{ | ||
msg: 'feat($scope): subject\n\n' + | ||
'connect #1\n' + | ||
'connect to #1\n' + | ||
'connects to #1\n' + | ||
'connected to #1' | ||
}, | ||
{ | ||
msg: 'feat', | ||
@@ -599,0 +659,0 @@ reasons: new Map([[angular0, [angularOpening]]]) |
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
46571
1239