Skip to content

Commit

Permalink
refactor: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
amowu committed Dec 25, 2017
1 parent 2fd1060 commit e3b3b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/convertToConventionalCommit.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = ({ commit: { author, message }, sha }) => {
// 預設的 headerPattern 是 /^(\w*)(?:\(([\w\$\.\-\* ]*)\))?\: (.*)$/
// 但我們的 scope 有斜線的需求,例如:fix(controllers/auth): oauth login failed
// 固修改 headerPattern 支援斜線(/)。
headerPattern: /^(\w*)(?:\(([\w\$\.\-\*\/ ]*)\))?\: (.*)$/
headerPattern: /^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$/
}
const conventionalCommit = conventionalCommitsParser.sync(message, parserOptions)

Expand Down

0 comments on commit e3b3b2f

Please sign in to comment.