Fix test -> wrong Regex flag

This commit is contained in:
Bruno Ribeito
2018-02-19 23:55:25 +00:00
parent f8f1355155
commit 99aa142cef
+1 -1
View File
@@ -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;