From bbf5fe634aaf1d5d5ac13febcea993cef6cc2c1e Mon Sep 17 00:00:00 2001 From: Josh birnholz Date: Tue, 21 Feb 2023 01:56:34 -0500 Subject: [PATCH] Fix final form check --- 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 5482e97b..63b05078 100644 --- a/js/creator-23.js +++ b/js/creator-23.js @@ -2666,7 +2666,7 @@ function writeText(textObject, targetContext) { } } - if (lineContext.font.endsWith('belerenb')) { + if (wordToWrite && lineContext.font.endsWith('belerenb')) { 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'); }