Skip to content

Commit

Permalink
fix: release version regex
Browse files Browse the repository at this point in the history
Adds support for an optional "v" prefix for the release regex
  • Loading branch information
friday authored Nov 16, 2023
1 parent c124bf2 commit 8e7c7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jQuery(function($) {
});

// hide dev release if it's the same as stable
const verRegex = /^(\d+)\.(\d+)\.(\d+)/
const verRegex = /^v?(\d+)\.(\d+)\.(\d+)/
const stableMatch = stableVer.match(verRegex)
const devMatch = devVer.match(verRegex)
const stMaj = parseInt(stableMatch[1], 10)
Expand Down

0 comments on commit 8e7c7c1

Please sign in to comment.