diff options
| author | Igor Minar | 2012-10-31 14:46:11 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-10-31 14:47:59 -0700 |
| commit | 7b52a976e1fdcccf05a90b6fdc66f41a65c78f3d (patch) | |
| tree | a8fe26414387499a7482313538f39da84ffe686e | |
| parent | 3a624a7ff5ac0f02ab4957af76c2f98c1596e232 (diff) | |
| download | angular.js-7b52a976e1fdcccf05a90b6fdc66f41a65c78f3d.tar.bz2 | |
chore(validate-commit-msg): allow '/' in scope
| -rwxr-xr-x | validate-commit-msg.js | 2 | ||||
| -rw-r--r-- | validate-commit-msg.spec.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/validate-commit-msg.js b/validate-commit-msg.js index 7235b8d9..dad507d1 100755 --- a/validate-commit-msg.js +++ b/validate-commit-msg.js @@ -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, diff --git a/validate-commit-msg.spec.js b/validate-commit-msg.spec.js index 2ea3cf16..7483a9b0 100644 --- a/validate-commit-msg.spec.js +++ b/validate-commit-msg.spec.js @@ -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([]); }); |
