From b34a954ebef284f8fca033c4b68ae45bd307718d Mon Sep 17 00:00:00 2001 From: Josh birnholz Date: Tue, 21 Feb 2023 00:34:19 -0500 Subject: [PATCH] Adjust final form regex --- js/creator-23.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/creator-23.js b/js/creator-23.js index 8c24ad8b..5482e97b 100644 --- a/js/creator-23.js +++ b/js/creator-23.js @@ -2667,7 +2667,7 @@ function writeText(textObject, targetContext) { } if (lineContext.font.endsWith('belerenb')) { - wordToWrite = wordToWrite.replace(/f\b/g, '\ue006').replace(/h\b/g, '\ue007').replace(/m\b/g, '\ue008').replace(/n\b/g, '\ue009').replace(/mk\b/g, '\ue00a'); + wordToWrite = wordToWrite.replace(/f(?:\s|$)/g, '\ue006').replace(/h(?:\s|$)/g, '\ue007').replace(/m(?:\s|$)/g, '\ue008').replace(/n(?:\s|$)/g, '\ue009').replace(/k(?:\s|$)/g, '\ue00a'); } //if the word goes past the max line width, go to the next line