From 718e574d3a3fad3928fa7b6d869b2302388cc85d Mon Sep 17 00:00:00 2001 From: liquidev Date: Wed, 23 Oct 2024 21:20:40 +0200 Subject: [PATCH] fix broken `defaultBrush` in editor JS interprets escape sequences in backtick literals --- static/brush-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/brush-editor.js b/static/brush-editor.js index 5404ec4..38d43df 100644 --- a/static/brush-editor.js +++ b/static/brush-editor.js @@ -5,7 +5,7 @@ const defaultBrush = ` -- Try playing around with the numbers, -- and see what happens! -withDotter \d -> +withDotter \\d -> stroke 8 #000 (d To) `.trim();