From 7494965137d5f50747b3dcfe7dd3b5f11bcbe6dd Mon Sep 17 00:00:00 2001 From: Azmoria <65363489+Azmoria@users.noreply.github.com> Date: Mon, 21 Oct 2024 07:34:55 -0400 Subject: [PATCH] Beta - case shouldn't matter for the language in notes. --- Journal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Journal.js b/Journal.js index 12ebeb185..6df5f8b13 100644 --- a/Journal.js +++ b/Journal.js @@ -1689,10 +1689,10 @@ class JournalManager{ if (!window.DM && (language) != undefined) { const pc = find_pc_by_player_id(my_player_id()) - const knownLanguages = pc?.proficiencyGroups.find(g => g.group === "Languages")?.values?.trim().split(/\s*,\s*/gi) ?? []; - knownLanguages.push('Telepathy'); + const knownLanguages = pc?.proficiencyGroups.find(g => g.group === "Languages")?.values?.toLowerCase().trim().split(/\s*,\s*/gi) ?? []; + knownLanguages.push('telepathy'); - if (!knownLanguages.includes(language)) { + if (!knownLanguages.includes(language.toLowerCase())) { const container = $("