Skip to content

Commit

Permalink
Add combat test alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed Aug 25, 2024
1 parent 2f5e198 commit e3c5fd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ function getPackFormat(version: string, type: PackType = 'resource'): FormatResu
.replace(/-? *pre[- ]?(?:release)? */, '-pre')
.replace(/ *release candidate */, '-rc')
.replace(/-? *exp(?:erimental)? *(?:snapshot)?|-es/, '-exp')
.replace(/^c(?:ombat)? *t(?:est)? */, 'combat')

// Special //
for (const format in SPECIAL[type]) {
Expand Down
1 change: 1 addition & 0 deletions test/pack-formats-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ Types:
=== Special cases ===

"combat3" (-) 4
"combat test 3" (-) 4
"1.18-exp1" (-) 7
"1.18-es2" (-) 7
"1.18 experimental snapshot 3" (-) 7

0 comments on commit e3c5fd4

Please sign in to comment.