Skip to content

Commit

Permalink
Add rc to pre-release identifiers (#8435)
Browse files Browse the repository at this point in the history
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
  • Loading branch information
chris48s and repo-ranger[bot] authored Sep 26, 2022
1 parent 5b6b29d commit 7330da1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion services/color-formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function version(version) {
if (first === 'v') {
first = version[1]
}
if (first === '0' || /alpha|beta|snapshot|dev|pre/i.test(version)) {
if (first === '0' || /alpha|beta|snapshot|dev|pre|rc/i.test(version)) {
return 'orange'
} else {
return 'blue'
Expand Down
1 change: 1 addition & 0 deletions services/color-formatters.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ describe('Color formatters', function () {
given('6.0-SNAPSHOT'),
given('1.0.1-dev'),
given('2.1.6-prerelease'),
given('2.1.6-RC1'),
]).expect('orange')

expect(() => version(null)).to.throw(
Expand Down

0 comments on commit 7330da1

Please sign in to comment.