Skip to content

Commit

Permalink
Update wfrp4e.js
Browse files Browse the repository at this point in the history
Fix #357.
  • Loading branch information
mclemente committed Jan 28, 2024
1 parent 73e0bae commit 0abec50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/providers/wfrp4e.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class wfrp4eLanguageProvider extends LanguageProvider {
}
const wfrp4eItemList = await wfrp4ePack.getIndex();
const languagesSetting = game.settings.get("polyglot", "Languages");
let myRegex = new RegExp(`${game.settings.get("polyglot", "LanguageRegex")}\\s*\\((.+)\\)`, "i");
let myRegex = new RegExp(`(?:Language|${game.settings.get("polyglot", "LanguageRegex")})\\s*\\((.+)\\)`, "i");
const langs = {};
for (let item of wfrp4eItemList) {
if (myRegex.test(item.name)) {
Expand Down

0 comments on commit 0abec50

Please sign in to comment.