Skip to content
This repository has been archived by the owner on Feb 5, 2018. It is now read-only.

Commit

Permalink
fix(WIP): Remove : from WIP
Browse files Browse the repository at this point in the history
When typing a quick `WIP` commit message, it's easier / faster to omit the colon.
  • Loading branch information
jamischarles committed Jan 19, 2016
1 parent e68a2bc commit dd20f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var findup = require('findup');
var config = getConfig();
var MAX_LENGTH = config.maxSubjectLength || 100;
var PATTERN = /^((?:fixup!\s*)?(\w*)(\(([\w\$\.\*/-]*)\))?\: (.*))(\n|$)/;
var IGNORED = /^WIP\:/;
var IGNORED = /^WIP/;
var TYPES = config.types || ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'chore', 'revert'];

var error = function() {
Expand Down Expand Up @@ -114,4 +114,4 @@ function getConfig() {
var pkgFile = findup.sync(process.cwd(), 'package.json');
var pkg = JSON.parse(fs.readFileSync(resolve(pkgFile, 'package.json')));
return pkg && pkg.config && pkg.config['validate-commit-msg'] || {};
}
}

0 comments on commit dd20f7e

Please sign in to comment.