Skip to content

Commit

Permalink
ci: update compare regex
Browse files Browse the repository at this point in the history
  • Loading branch information
tlvince committed Jan 23, 2025
1 parent 7e2f508 commit 703a5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/compare.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const generateCompareLinks = (flakeUpdateOutput) => {
const regex =
/(?:'github:|git\+https:\/\/github\.com\/)(?<repo>[^/]+\/[^/]+)(?:\/|.*?rev=)(?<oldCommit>[0-9a-f]{7,40}).*?\(\d{4}-\d{2}-\d{2}\)\s*\s*(?:'github:|git\+https:\/\/github\.com\/)\k<repo>(?:\/|.*?rev=)(?<newCommit>[0-9a-f]{7,40})/g;
/'(?<repo>[^']+)':\s*'[^']*?(?:rev=|\/)(?<oldCommit>[a-f0-9]+)[^']*'\s*\(.*?\)\s*\s*'[^']*?(?:rev=|\/)(?<newCommit>[a-f0-9]+)[^']*'/gm;

let match;
const links = [];
Expand Down

0 comments on commit 703a5e2

Please sign in to comment.