diff options
Diffstat (limited to 'src/utils/genericUtils.ts')
-rw-r--r-- | src/utils/genericUtils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/genericUtils.ts b/src/utils/genericUtils.ts index 8b07e699..144c0438 100644 --- a/src/utils/genericUtils.ts +++ b/src/utils/genericUtils.ts @@ -93,7 +93,7 @@ function getLuminance(color: string): number { } /* From https://stackoverflow.com/a/5624139 */ -function hexToRgb(hex: string): {r: number, g: number, b: number} { +function hexToRgb(hex: string): {r: number; g: number; b: number} { // Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF") const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; hex = hex.replace(shorthandRegex, function(m, r, g, b) { |