File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -177,13 +177,13 @@ const findRelease = (args, version) => {
177
177
RELEASE . heading ,
178
178
v ? escRegExp ( v ) : RELEASE . versionRe ,
179
179
' ' ,
180
- escRegExp ( RELEASE . date ( ) ) . replace ( / \d / g, '\\d' ) ,
180
+ escRegExp ( RELEASE . date ( today ( ) ) ) . replace ( / \d / g, '\\d' ) ,
181
181
'$' ,
182
182
] . join ( '' )
183
183
184
184
const releaseSrc = [
185
185
'(' ,
186
- titleSrc ( RELEASE . version ( version ) ) ,
186
+ titleSrc ( version && RELEASE . version ( version ) ) ,
187
187
'[\\s\\S]*?' ,
188
188
RELEASE . sep ,
189
189
')' ,
@@ -366,11 +366,11 @@ const main = async (argv) => {
366
366
367
367
if ( args . read ) {
368
368
// this reads the release notes for that version
369
- let { release } = findRelease ( args , args . endTag || args . startTag )
369
+ let { release } = findRelease ( args , args . tag )
370
370
if ( args . type === 'gh' ) {
371
371
// changelog was written in markdown so convert user links to gh release style
372
372
// XXX: this needs to be changed if the `generateRelease` format changes
373
- release = release . replace ( / \( \[ ( @ [ a - z \d - ] + ) \] \( h t t p s : \/ \/ g i t h u b .c o m \/ [ a - z \d - ] + \) \) / g , '($1)' )
373
+ release = release . replace ( / \( \[ ( @ [ a - z \d - ] + ) \] \( h t t p s : \/ \/ g i t h u b .c o m \/ [ a - z \d - ] + \) \) / gi , '($1)' )
374
374
}
375
375
return console . log ( release )
376
376
}
You can’t perform that action at this time.
0 commit comments