Skip to content

Commit

Permalink
Update parser.js
Browse files Browse the repository at this point in the history
  • Loading branch information
franck403 authored Oct 8, 2024
1 parent 0ecb1b6 commit 2618b22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parser/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2618b22

Please sign in to comment.