pf2e-sage-stats 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/app.js +1 -1
  2. package/package.json +1 -1
package/dist/app.js CHANGED
@@ -900,7 +900,7 @@ const parseTrackerCommands = (line) => {
900
900
  return actions;
901
901
  };
902
902
  exports.parseTrackerCommands = parseTrackerCommands;
903
- const sameTag = (entry, tag) => (entry.id === tag || entry.alias === tag || entry.name === tag);
903
+ const sameTag = (entry, tag) => (entry.id.toLowerCase() === tag.toLowerCase() || entry.alias.toLowerCase() === tag.toLowerCase() || entry.name.toLowerCase().includes(tag.toLowerCase()));
904
904
  const findCharacter = (tracker, tag) => (tracker.chars.find((entry) => sameTag(entry, tag)));
905
905
  const findCharacterOrChild = (tracker, tag) => {
906
906
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pf2e-sage-stats",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "An RPG Sage's .tsv stat generation tool",
5
5
  "author": "ikariott@gmail.com",
6
6
  "license": "MIT",