From 0f7c2da09b20d619ac9461389825899e5b6da228 Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Fri, 17 Jan 2025 23:37:56 +0100 Subject: [PATCH] fix icon name replacement regex --- labscore/utils/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labscore/utils/markdown.js b/labscore/utils/markdown.js index 28e4a45..ffb16be 100644 --- a/labscore/utils/markdown.js +++ b/labscore/utils/markdown.js @@ -19,7 +19,7 @@ function _icon(icon){ if(ICONS[icon]) i = ICONS[icon]; if(ICONS_NEXTGEN[icon]) i = ICONS_NEXTGEN[icon]; - return i.replace(/:[a-z1-9_]*:/, ':i:'); + return i.replace(/:[a-z0-9_]*:/, ':i:'); } // Ensures potentially user-provided content won't escape pill components