Skip to content

Commit

Permalink
Update stableBrandNewReminder.js (#3076)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 authored Dec 17, 2023
1 parent 7df8300 commit b3e35a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/stableBrandNewReminder.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ async function doIt() {
const comments= await getAllComments( issue.number );

let found=false;
let comment = comments.find( c => /created (\d+\.\d+\.\d+)/g.exec(c.body));
let comment;

comment = comments.find( c => /created (\d+\.\d+\.\d+)/g.exec(c.body));
if (comment) {
const result = /created (\d+)\.(\d+)\.(\d+)/g.exec(comment.body);
if (result) {
Expand All @@ -33,7 +35,7 @@ async function doIt() {
found=true;
}

let comment = comments.find( c => /reminder (\d+\.\d+\.\d+)/g.exec(c.body));
comment = comments.find( c => /reminder (\d+\.\d+\.\d+)/g.exec(c.body));
if (comment) {
const result = /reminder (\d+)\.(\d+)\.(\d+)/g.exec(comment.body);
if (result) {
Expand Down

0 comments on commit b3e35a2

Please sign in to comment.