From 3746900490e1421401ec5195b3ecc9f8afe1535e Mon Sep 17 00:00:00 2001 From: Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> Date: Mon, 23 Jan 2023 08:32:22 +0000 Subject: [PATCH] Bugfix for `expand_shorthand` (#79) --- src/outlines.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/outlines.js b/src/outlines.js index c1e675e..f4e7dce 100644 --- a/src/outlines.js +++ b/src/outlines.js @@ -140,7 +140,7 @@ const expand_shorthand = (config, units) => { if (a.type(config.expand)(units) == 'string') { const prefix = config.expand.slice(0, -1) const suffix = config.expand.slice(-1) - let expand = suffix + let expand = prefix let joints = 0 if (suffix == ')') ; // noop