Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
chore(validate-commit-msg): allow '/' in scope
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar committed Oct 31, 2012
1 parent 3a624a7 commit 7b52a97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion validate-commit-msg.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var util = require('util');


var MAX_LENGTH = 70;
var PATTERN = /^(\w*)(\(([\w\$\.\-\*]*)\))?\: (.*)$/;
var PATTERN = /^(\w*)(\(([\w\$\.\-\*/]*)\))?\: (.*)$/;
var IGNORED = /^WIP\:/;
var TYPES = {
feat: true,
Expand Down
1 change: 1 addition & 0 deletions validate-commit-msg.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe('validate-commit-msg.js', function() {
expect(m.validateMessage('chore($controller): something')).toBe(VALID);
expect(m.validateMessage('chore(foo-bar): something')).toBe(VALID);
expect(m.validateMessage('chore(*): something')).toBe(VALID);
expect(m.validateMessage('chore(guide/location): something')).toBe(VALID);
expect(errors).toEqual([]);
});

Expand Down

0 comments on commit 7b52a97

Please sign in to comment.