Skip to content

Commit

Permalink
chore: fix numbered tp groups color (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dyskal authored Sep 30, 2024
1 parent 5b412c4 commit ff07be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/util/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const getColor = (value, location, description, id, options = {}) => {
return '#676767'
} else if (/\bCM\b/.test(value) || value.toUpperCase().includes('AMPHI') || location.toUpperCase().includes('AMPHI')) {
return options.customColor?.amphi || '#efd6d8'
} else if (/\bTP\b/.test(value) || value.includes('TPi') || value.includes('TDi') || value.trim().match(/\sG\d\.\d$/)) {
} else if (/\bTP\d*\b/.test(value) || value.includes('TPi') || value.includes('TDi') || value.trim().match(/\sG\d\.\d$/)) {
return options.customColor?.tp || '#bbe0ff'
} else if ((/\bTD\b/.test(value) || location.includes('V-B') || value.trim().match(/\sG\d$/)) && !/^S\d\.\d\d/.test(value) && !/contr[ôo]le/i.test(value)) {
return options.customColor?.td || '#d4fbcc'
Expand Down

0 comments on commit ff07be4

Please sign in to comment.