Skip to content

Commit

Permalink
icecup: match entire version string and allow prerelease versions
Browse files Browse the repository at this point in the history
  • Loading branch information
HighDiceRoller committed Jan 1, 2025
1 parent 1d6be4c commit 7e66d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/icecup.html
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ <h2>Useful links</h2>
<script type="text/javascript">
var searchParams = new URLSearchParams(window.location.search);
var icepool_version = searchParams.get('v');
if (!icepool_version || !icepool_version.match(/\d+\.\d+\.\d+/)) {
if (!icepool_version || !icepool_version.match(/^\d+\.\d+\.\d+((a|b|pre)\d+)?$/)) {
icepool_version = '';
}

Expand Down

0 comments on commit 7e66d5e

Please sign in to comment.