Restricted symbols to lower-case only (#36)

This commit is contained in:
Vlyan
2022-05-05 08:59:41 +02:00
parent 1c2de655c4
commit 66f84ba9d7
3 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,9 @@
# Changelog
Date format : day/month/year
## 1.8.1 - ??/??/2022 - ???
- Restricted symbols to lower-case only, ex : (air) work, (Air) will not (#36).
## 1.8.0 - 29/04/2022 - QoL & Compendiums Update
- Added 179 Japanese villages name table.
- Added Rōnin icon and tag symbol `(ronin)` (Thanks to TesserWract).

View File

@@ -293,7 +293,7 @@ export class HelpersL5r5e {
CONFIG.l5r5e.symbols.forEach((cfg, tag) => {
if (toSymbol) {
text = text.replace(
new RegExp(HelpersL5r5e.escapeRegExp(tag), "gi"),
new RegExp(HelpersL5r5e.escapeRegExp(tag), "g"),
`<i class="${cfg.class}" title="${game.i18n.localize(cfg.label)}"></i>`
);
} else {

View File

@@ -6,8 +6,8 @@
"readme": "https://gitlab.com/teaml5r/l5r5e/-/blob/master/README.md",
"changelog": "https://gitlab.com/teaml5r/l5r5e/-/blob/master/CHANGELOG.md",
"manifest": "https://gitlab.com/teaml5r/l5r5e/-/raw/master/system/system.json",
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.8.0/raw/l5r5e.zip?job=build",
"version": "1.8.0",
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.8.1/raw/l5r5e.zip?job=build",
"version": "1.8.1",
"minimumCoreVersion": "9",
"compatibleCoreVersion": "9",
"manifestPlusVersion": "1.0.0",