Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Lank891/Foundry-Pf2e-Damage-Estimate
Browse files Browse the repository at this point in the history
  • Loading branch information
Lank891 committed Apr 11, 2024
2 parents 9284f04 + 4cf8a6a commit 73b246b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -42,4 +44,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.json, ./module.zip'
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}
body: ${{ github.event.release.body }}
4 changes: 2 additions & 2 deletions scripts/damage-estimate-main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function calculate(expr) {
return calculate_helper(Array.from(expr), 0);
}

// From https://medium.com/@tommypang04/a-simple-calculator-that-evaluates-elementary-arithmetic-expressions-with-javascript-bca12de61aea
// Based on https://medium.com/@tommypang04/a-simple-calculator-that-evaluates-elementary-arithmetic-expressions-with-javascript-bca12de61aea
function calculate_helper(s, idx) {
var stk = [];
let sign = '+';
Expand Down Expand Up @@ -152,4 +152,4 @@ function calculate_helper(s, idx) {
}

return ans;
}
}

0 comments on commit 73b246b

Please sign in to comment.