Skip to content

Commit

Permalink
Merge pull request #691 from Pantocyclus/mummingtrunk-fix
Browse files Browse the repository at this point in the history
Fix regex matching
  • Loading branch information
horrible-little-slime authored Nov 21, 2024
2 parents 7bac7e2 + 86e72ad commit af8944d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/resources/2017/MummingTrunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { get } from "../../property.js";
import { notNull } from "../../utils.js";
import { isNumericModifier } from "../../modifier.js";

const MUMMERY_MODS_PATTERN = /\[(\d*)\*fam\([^)]*\)/;
const MUMMERY_MODS_PATTERN = /\[(\d*)\*fam\(([^)]*)\)/;
/**
* Parses the _mummeryMods preference into a Map for easier use.
*
Expand All @@ -23,8 +23,8 @@ export function currentCostumes(): Map<
if (!matcher) return null;

return [
Familiar.get(matcher[1]),
[modifier, Number(matcher[2])],
Familiar.get(matcher[2]),
[modifier, Number(matcher[1])],
] as const;
})
.filter(notNull),
Expand Down

0 comments on commit af8944d

Please sign in to comment.