mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 15:24:43 +00:00
chore(validate-commit-msg): allow '/' in scope
This commit is contained in:
parent
3a624a7ff5
commit
7b52a976e1
2 changed files with 2 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ var util = require('util');
|
||||||
|
|
||||||
|
|
||||||
var MAX_LENGTH = 70;
|
var MAX_LENGTH = 70;
|
||||||
var PATTERN = /^(\w*)(\(([\w\$\.\-\*]*)\))?\: (.*)$/;
|
var PATTERN = /^(\w*)(\(([\w\$\.\-\*/]*)\))?\: (.*)$/;
|
||||||
var IGNORED = /^WIP\:/;
|
var IGNORED = /^WIP\:/;
|
||||||
var TYPES = {
|
var TYPES = {
|
||||||
feat: true,
|
feat: true,
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ describe('validate-commit-msg.js', function() {
|
||||||
expect(m.validateMessage('chore($controller): something')).toBe(VALID);
|
expect(m.validateMessage('chore($controller): something')).toBe(VALID);
|
||||||
expect(m.validateMessage('chore(foo-bar): something')).toBe(VALID);
|
expect(m.validateMessage('chore(foo-bar): something')).toBe(VALID);
|
||||||
expect(m.validateMessage('chore(*): something')).toBe(VALID);
|
expect(m.validateMessage('chore(*): something')).toBe(VALID);
|
||||||
|
expect(m.validateMessage('chore(guide/location): something')).toBe(VALID);
|
||||||
expect(errors).toEqual([]);
|
expect(errors).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue