Skip to content

Commit

Permalink
v1.5.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Mar 3, 2021
1 parent a017908 commit 0df89aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v1.5.6.5
- Fixed an issue with setting the Common language on WFRP4 (and possibly SWADE).

# v1.5.6.4
- Fixed an issue with the Common language not being set properly.
- Fixed an edge case where the module would throw errors when a message would be deleted faster than it would translate it.
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "polyglot",
"title": "Polyglot",
"description": "Talk to others using a language you can speak and scrambles text you can't understand, in several fantasy scripts.",
"version": "1.5.6.4",
"version": "1.5.6.5",
"author": ["MClemente", "KaKaRoTo", "elizeuangelo"],
"scripts": ["./src/polyglot.js"],
"styles": ["./css/polyglot.css","./css/fonts.css"],
Expand Down
6 changes: 3 additions & 3 deletions src/polyglot.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PolyGlot {
let myRegex = new RegExp( game.i18n.localize("POLYGLOT.WFRP4E.LanguageSkills")+'\\s*\\((.+)\\)', 'i' );
const match = item.name.match(myRegex);
if (match) {
let key = match[1].trim();
let key = match[1].trim().toLowerCase();
langs[key] = key;
}
}
Expand Down Expand Up @@ -147,7 +147,7 @@ class PolyGlot {
const match = item.name.match( myRegex );
// adding only the descriptive language name, not "Language (XYZ)"
if (match)
this.known_languages.add( match[1].trim() );
this.known_languages.add(match[1].trim().toLowerCase());
}
break;
case "swade":
Expand All @@ -156,7 +156,7 @@ class PolyGlot {
const match = item.name.match(/Language \((.+)\)/i);
// adding only the descriptive language name, not "Language (XYZ)"
if (match)
this.known_languages.add(match[1].trim());
this.known_languages.add(match[1].trim().toLowerCase());
}
break;
case "ose":
Expand Down

0 comments on commit 0df89aa

Please sign in to comment.