@cplace/cli
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -208,6 +208,6 @@ "use strict"; | ||
const match = ReleaseNotesMessagesFile.CHANGELOG_DEFAULT_MESSAGE_PATTERN.exec(message); | ||
if (match === null || match.length < 2) { | ||
if (match === null || match.length < 3) { | ||
return null; | ||
} | ||
const m = util_1.makeSingleLine(match[1]).trim(); | ||
const m = util_1.makeSingleLine(match[2]).trim(); | ||
Global_1.Global.isVerbose() && console.log('found default commit message for', logEntry.hash, ':', m); | ||
@@ -243,3 +243,3 @@ return m; | ||
ReleaseNotesMessagesFile.MESSAGES_FILE_NAME_PATTERN = new RegExp(/^messages_.*\.db$/); | ||
ReleaseNotesMessagesFile.CHANGELOG_DEFAULT_MESSAGE_PATTERN = new RegExp(/#changelog:\s?((.|\n(?!\n))+)/); | ||
ReleaseNotesMessagesFile.CHANGELOG_DEFAULT_MESSAGE_PATTERN = new RegExp(/(^|\n)changelog:[^\S\n]*(([^\n]|\n(?!\n))*)/); | ||
ReleaseNotesMessagesFile.RELEVANCE_PATTERNS = [ | ||
@@ -246,0 +246,0 @@ 'merge pull request #\\d+', |
{ | ||
"name": "@cplace/cli", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -21,3 +21,3 @@ /** | ||
private static MESSAGES_FILE_NAME_PATTERN: RegExp = new RegExp(/^messages_.*\.db$/); | ||
private static CHANGELOG_DEFAULT_MESSAGE_PATTERN: RegExp = new RegExp(/#changelog:\s?((.|\n(?!\n))+)/); | ||
private static CHANGELOG_DEFAULT_MESSAGE_PATTERN: RegExp = new RegExp(/(^|\n)changelog:[^\S\n]*(([^\n]|\n(?!\n))*)/); | ||
private static readonly RELEVANCE_PATTERNS: string[] = [ | ||
@@ -254,7 +254,7 @@ 'merge pull request #\\d+', // GitHub Pull Request | ||
const match = ReleaseNotesMessagesFile.CHANGELOG_DEFAULT_MESSAGE_PATTERN.exec(message); | ||
if (match === null || match.length < 2) { | ||
if (match === null || match.length < 3) { | ||
return null; | ||
} | ||
const m = makeSingleLine(match[1]).trim(); | ||
const m = makeSingleLine(match[2]).trim(); | ||
Global.isVerbose() && console.log('found default commit message for', logEntry.hash, ':', m); | ||
@@ -261,0 +261,0 @@ return m; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
212963