From c931a17e77a26d0d04267e2c2c4fe0c238b231d0 Mon Sep 17 00:00:00 2001 From: MisterCavespider Date: Sat, 10 Dec 2022 15:21:43 +0100 Subject: [PATCH] Transparency in board-column CSS is properly matched and ignored with regards to kanban colour sorting --- web_src/js/features/repo-projects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/repo-projects.js b/web_src/js/features/repo-projects.js index 9777e6c8ecc37..49af46605000b 100644 --- a/web_src/js/features/repo-projects.js +++ b/web_src/js/features/repo-projects.js @@ -200,7 +200,7 @@ function getRelativeColor(color) { } function rgbToHex(rgb) { - rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/); + rgb = rgb.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+).*\)$/); return `#${hex(rgb[1])}${hex(rgb[2])}${hex(rgb[3])}`; }