From ffd0d963f2b06f86a5fe8c78ead0dfb1c2345083 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Thu, 27 Apr 2017 22:41:15 +0200 Subject: [PATCH] [json] fix for color decorator regex --- extensions/json/client/src/colorDecorators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/json/client/src/colorDecorators.ts b/extensions/json/client/src/colorDecorators.ts index 21e9608e758..6fecd50facb 100644 --- a/extensions/json/client/src/colorDecorators.ts +++ b/extensions/json/client/src/colorDecorators.ts @@ -131,7 +131,7 @@ export function activateColorDecorations(decoratorProvider: (uri: string) => The return Disposable.from(...disposables); } -const colorPattern = /^#[0-9a-f]{3,8}$/; +const colorPattern = /^#[0-9A-Fa-f]{3,8}$/; function hex2CSSColor(hex: string): string { console.log(hex);