From e3b3b2f60bc67527cbec75021792ca00df265e5f Mon Sep 17 00:00:00 2001 From: Amo Wu Date: Mon, 25 Dec 2017 16:48:08 +0800 Subject: [PATCH] refactor: fix lint error --- lib/convertToConventionalCommit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/convertToConventionalCommit.js b/lib/convertToConventionalCommit.js index 0f6712d..b207d47 100644 --- a/lib/convertToConventionalCommit.js +++ b/lib/convertToConventionalCommit.js @@ -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)