Skip to content

Commit

Permalink
Merge pull request #2580 from Azmoria/Beta---case-shouldn't-matter-fo…
Browse files Browse the repository at this point in the history
…r-the-language-in-notes-

Beta - case shouldn't matter for the language in notes.
  • Loading branch information
Azmoria authored Oct 21, 2024
2 parents 4aa1df8 + 7494965 commit 8b0f630
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Journal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = $("<div>").html(languageText);
const elements = container.find("*").add(container);
const textNodes = elements.contents().not(elements);
Expand Down

0 comments on commit 8b0f630

Please sign in to comment.