diff --git a/src/renderer/ColorManager.ts b/src/renderer/ColorManager.ts index 43a41f56..ee9c9eac 100644 --- a/src/renderer/ColorManager.ts +++ b/src/renderer/ColorManager.ts @@ -66,7 +66,7 @@ function toPaddedHex(c: number): string { * Manages the source of truth for a terminal's colors. */ export class ColorManager implements IColorManager { - private VALID_NON_NAMED_COLORS = new RegExp('^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$', 'g'); + private VALID_NON_NAMED_COLORS = new RegExp('^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$', 'i'); public colors: IColorSet;