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

Commit 537e200

Browse files
committed
chore(validate-commit-msg): allow '/' in scope
1 parent 97578b4 commit 537e200

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

validate-commit-msg.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var util = require('util');
1313

1414

1515
var MAX_LENGTH = 70;
16-
var PATTERN = /^(\w*)(\(([\w\$\.\-\*]*)\))?\: (.*)$/;
16+
var PATTERN = /^(\w*)(\(([\w\$\.\-\*/]*)\))?\: (.*)$/;
1717
var IGNORED = /^WIP\:/;
1818
var TYPES = {
1919
feat: true,

validate-commit-msg.spec.js

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ describe('validate-commit-msg.js', function() {
3131
expect(m.validateMessage('chore($controller): something')).toBe(VALID);
3232
expect(m.validateMessage('chore(foo-bar): something')).toBe(VALID);
3333
expect(m.validateMessage('chore(*): something')).toBe(VALID);
34+
expect(m.validateMessage('chore(guide/location): something')).toBe(VALID);
3435
expect(errors).toEqual([]);
3536
});
3637

0 commit comments

Comments
 (0)