Skip to content

Commit ffd0d96

Browse files
committed
[json] fix for color decorator regex
1 parent 3edd565 commit ffd0d96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/json/client/src/colorDecorators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function activateColorDecorations(decoratorProvider: (uri: string) => The
131131
return Disposable.from(...disposables);
132132
}
133133

134-
const colorPattern = /^#[0-9a-f]{3,8}$/;
134+
const colorPattern = /^#[0-9A-Fa-f]{3,8}$/;
135135

136136
function hex2CSSColor(hex: string): string {
137137
console.log(hex);

0 commit comments

Comments
 (0)