From f9de4fa8dedd480e2af5e8f4547ea78d84ccdccd Mon Sep 17 00:00:00 2001 From: youjung-hong Date: Fri, 18 Aug 2017 18:25:47 +0900 Subject: [PATCH] chore: change regexp --- README.md | 2 -- src/github-release.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index a45cfb5..732b620 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,7 @@ Gather commits on tag ```json // package.json devDependencies: { - ... "tui-release-notes": "git+https://github.com/nhnent/tui.release-notes.git" - ... } ``` diff --git a/src/github-release.js b/src/github-release.js index 726a2ae..b2f86a1 100755 --- a/src/github-release.js +++ b/src/github-release.js @@ -7,7 +7,7 @@ const path = require('path'); const pkg = require(path.join(process.cwd(), 'package.json')); const {TUI_GITHUB_TOKEN, apiUrl} = process.env; // eslint-disable-line no-process-env -const GIT_REPO_REGEXP = /\/([\w-]+)\/([\w-]+)\.git\/?$/; // .../user-name/repository-name.git +const GIT_REPO_REGEXP = /\/([\w-]+)\/([\w-.]+)\.git\/?$/; // .../user-name/repository-name.git /** * @example * * sha1sha fixed: some issue (fixes: #122) (author-name)