From e7d1300291bd2d45765bd2650ec5495ee907660b Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Tue, 5 Jan 2021 10:55:11 +0100 Subject: [PATCH] Bumped version to 1.2.0 --- dist/index.js | 9 ++++++--- package.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 1663141..87f687f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -299,9 +299,12 @@ function initSettings() { return __awaiter(this, void 0, void 0, function* () { const settings = {}; settings.gitPath = yield io.which('git', true); - const caseInsensitive = core.getInput('case-insensitive-regex'); - settings.tagRegex = RegExp(core.getInput('tag-regex'), caseInsensitive); - settings.filterRegex = RegExp(core.getInput('filter-regex'), caseInsensitive); + let regexFlag = ''; + if (core.getInput('case-insensitive-regex') === 'true') { + regexFlag = 'i'; + } + settings.tagRegex = RegExp(core.getInput('tag-regex'), regexFlag); + settings.filterRegex = RegExp(core.getInput('filter-regex'), regexFlag); settings.changelogFilePath = core.getInput('changelog-file-path') || 'CHANGELOG.md'; return settings; }); diff --git a/package.json b/package.json index 426ea90..0f43b9b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-changelog", - "version": "1.1.0", + "version": "1.2.0", "private": true, "description": "Action to generate a changelog from a Git repository commit history.", "main": "lib/main.js",