chore(validate-commit-msg): allow '/' in scope

This commit is contained in:
Igor Minar 2012-10-31 14:46:11 -07:00
parent 3a624a7ff5
commit 7b52a976e1
2 changed files with 2 additions and 1 deletions

View file

@ -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,

View file

@ -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([]);
});