Skip to content

Commit eb69fb7

Browse files
committed
Build: Fix QUnit page to recognise -rc suffix.
Includes these to the HTML page: * qunit-2.0.0-rc1.js (2016, ten years ago) * qunit-3.0.0-rc1.js (2026, last month) Note that -alpha was listed already.
1 parent 022a8b9 commit eb69fb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Gruntfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ grunt.registerTask( "build-index", function() {
314314
const files = grunt.file.expand( "cdn/qunit/*.js" );
315315
const releases = parseReleases(
316316
files,
317-
/(qunit\/qunit-(\d+\.\d+\.\d+(?:[A-z-]+\.\d+)?)(?:\.(min))?\.js)$/
317+
// See also isValidVersion
318+
// https://github.com/qunitjs/qunit/blob/3.0.0-rc1/build/utils.js#L80
319+
/(qunit\/qunit-(\d+\.\d+\.\d+(?:-alpha\.\d+|-rc\d+)?)(?:\.(min))?\.js)$/
318320
);
319321

320322
releases.forEach( function( release ) {

0 commit comments

Comments
 (0)