diff --git a/services/color-formatters.js b/services/color-formatters.js index 5cf6da7c712be..154710ef8df42 100644 --- a/services/color-formatters.js +++ b/services/color-formatters.js @@ -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' diff --git a/services/color-formatters.spec.js b/services/color-formatters.spec.js index 8c282fd61b478..14b119783e72f 100644 --- a/services/color-formatters.spec.js +++ b/services/color-formatters.spec.js @@ -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(