We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7cfe293 + e59adcf commit 338d98dCopy full SHA for 338d98d
src/roll20/content-script.js
@@ -46,7 +46,7 @@ function escapeRoll20Macro(text) {
46
47
function genRoll(dice, modifiers = {}) {
48
dice = dice.replace(/ro<=([0-9]+)/, "ro<$1");
49
- dice = dice.replace(/(^|\s)+([^\s]+)min([0-9]+)([^\s]*)/g, "$1{$2$4, 0d0 + $3}kh1");
+ dice = dice.replace(/(^|\s)+([^\s]+)min(\d+)([^\s+\-]*?)(?=[+\-\s]|$)/g, "$1{$2$4, 0d0 + $3}kh1");
50
let roll = "[[" + dice;
51
for (let m in modifiers) {
52
let mod = modifiers[m].trim();
0 commit comments