Skip to content

Commit

Permalink
version 0.8.38
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Feb 11, 2022
1 parent 6c0199f commit 9e54888
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.8.38

- Add PR [Update entity matching to allow up to 2 levels of nested brackets []](https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/pull/95) ty to @crnormand

## 0.8.37

- Add again hook `getSceneNavigationContext` for strange use case [[BUG] Doesn't load @scene triggers on game load](https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/issues/94)
Expand Down
8 changes: 4 additions & 4 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "trigger-happy",
"title": "Trigger Happy",
"description": "Automate everything in your world by creating triggers for your players to spring traps or anything you can think of!",
"version": "0.8.37",
"version": "0.8.38",
"author": "KaKaRoTo, tposney, p4535992",
"type": "module",
"socket": true,
Expand Down Expand Up @@ -61,9 +61,9 @@
],
"url": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy",
"manifest": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/releases/latest/download/module.json",
"download": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/releases/download/v0.8.37/module.zip",
"readme": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/blob/v0.8.37/README.md",
"changelog": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/blob/v0.8.37/changelog.md",
"download": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/releases/download/v0.8.38/module.zip",
"readme": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/blob/v0.8.38/README.md",
"changelog": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/blob/v0.8.38/changelog.md",
"bugs": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/issues",
"minimumCoreVersion": "0.8.9",
"compatibleCoreVersion": "9",
Expand Down
3 changes: 2 additions & 1 deletion module/HTMLEnricherTriggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ export class HTMLEnricherTriggers {
static enrichAll(text) {
const entityLinks = Object.keys(CONFIG).concat(game.triggers.arrayTriggers);
// entityLinks.push('Tag');
const entityMatchRgx = `@(${entityLinks.join('|')})\\[([^\\]]+)\\](?:{([^}]+)})?`;
// const entityMatchRgx = `@(${entityLinks.join('|')})\\[([^\\]]+)\\](?:{([^}]+)})?`;
const entityMatchRgx = `@(${entityLinks.join('|')})\\[((?:[^\[\\]]+|\\[(?:[^\\[\\]]+|\\[[^\\[\\]]*\\])*\\])*)\\](?:{([^}]+)})?`;
const rgx = new RegExp(entityMatchRgx, 'ig');

const triggerLines = text
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "trigger-happy",
"title": "Trigger Happy",
"description": "Automate everything in your world by creating triggers for your players to spring traps or anything you can think of!",
"version": "0.8.37",
"version": "0.8.38",
"scripts": {
"package": "gulp package",
"build": "gulp clean && gulp build && gulp link",
Expand Down

0 comments on commit 9e54888

Please sign in to comment.