From 78ad4f670bf84be5e43c351fcbe7b58342afd7e4 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Wed, 4 Dec 2019 21:08:09 +0800 Subject: [PATCH] Fix bug --- libs/events.js | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/events.js b/libs/events.js index 8fbbc4e9..061ba278 100644 --- a/libs/events.js +++ b/libs/events.js @@ -1122,6 +1122,7 @@ events.prototype.__precompile_getArray = function () { } events.prototype.__precompile_text = function (text) { + if (typeof text != 'string') return text; return text.replace(/\${(.*?)}/g, function (word, value) { return "${" + core.replaceValue(value) + "}"; });