From 8943f8b9aef7e5db3c1421111510b26a8ef225b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Sun, 7 Feb 2021 20:02:10 +0100 Subject: [PATCH] refactoring --- docs/src/demos/Examples/Savvy/findColors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/demos/Examples/Savvy/findColors.ts b/docs/src/demos/Examples/Savvy/findColors.ts index 48832ffa..47f89772 100644 --- a/docs/src/demos/Examples/Savvy/findColors.ts +++ b/docs/src/demos/Examples/Savvy/findColors.ts @@ -16,7 +16,7 @@ export default function (doc: Node): DecorationSet { const color = match[0] const index = match.index || 0 const from = position + index - const to = position + index + match[0].length + const to = position + index + color.length const decoration = Decoration.inline(from, to, { class: 'color', style: `--color: ${color}`,