File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ const ConventionalCommitRegex =
9999const CoAuthoredByRegex = / c o - a u t h o r e d - b y : \s * (?< name > .+ ) ( < (?< email > .+ ) > ) / gim;
100100const PullRequestRE = / \( [ a - z ] * ( # \d + ) \s * \) / gm;
101101const IssueRE = / ( # \d + ) / gm;
102- const RevertHashRegex = / T h i s r e v e r t s c o m m i t (?< hash > [ a - f 0 - 9 ] { 40 } ) ./ gm;
102+ const RevertHashRE = / T h i s r e v e r t s c o m m i t (?< hash > [ a - f 0 - 9 ] { 40 } ) ./ gm;
103103
104104export function parseGitCommit (
105105 commit : RawGitCommit ,
@@ -135,9 +135,9 @@ export function parseGitCommit(
135135
136136 // Extract the reverted hashes.
137137 const revertedHashes = [ ]
138- const matchedHashes = commit . body . matchAll ( RevertHashRegex )
138+ const matchedHashes = commit . body . matchAll ( RevertHashRE )
139139 for ( const matchedHash of matchedHashes ) {
140- revertedHashes . push ( matchedHash . groups . match )
140+ revertedHashes . push ( matchedHash . groups . hash )
141141 }
142142
143143 // Find all authors
You can’t perform that action at this time.
0 commit comments