mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-17 22:34:43 +08:00
chore(validate-commit-msg): allow '/' in scope
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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([]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user