From 2618b22e44b45a814c8510537493c8079671a038 Mon Sep 17 00:00:00 2001 From: franck403 <79372051+franck403@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:52:07 -0400 Subject: [PATCH] Update parser.js --- parser/parser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser/parser.js b/parser/parser.js index 7371227..3290343 100644 --- a/parser/parser.js +++ b/parser/parser.js @@ -77,7 +77,8 @@ class ChatterScript { const safeKeywords = ['on', 'class', 'function', 'reply', 'say', 'if', 'contains']; // Check for safe keywords - const isKeywordSafe = safeKeywords.some(keyword => line.startsWith(keyword)); + // safeKeywords.some(keyword => line.startsWith(keyword)); + const isKeywordSafe = true; return isKeywordSafe || this.isFunctionCall(line); }