From 66f84ba9d797b66d121e72cd3ff14adc0959a8fd Mon Sep 17 00:00:00 2001 From: Vlyan Date: Thu, 5 May 2022 08:59:41 +0200 Subject: [PATCH] Restricted symbols to lower-case only (#36) --- CHANGELOG.md | 3 +++ system/scripts/helpers.js | 2 +- system/system.json | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc763b2..c358b60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). diff --git a/system/scripts/helpers.js b/system/scripts/helpers.js index 4cf8222..dc23abe 100644 --- a/system/scripts/helpers.js +++ b/system/scripts/helpers.js @@ -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"), `` ); } else { diff --git a/system/system.json b/system/system.json index b8dd84a..e6a2e48 100644 --- a/system/system.json +++ b/system/system.json @@ -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",