Skip to content

Commit

Permalink
Output all modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
kn-lim committed May 30, 2024
1 parent 317ea4a commit f53e1ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/dice/roll.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

const (
diceRollRegex = `^(\d*)d(\d+)([+-]\d+)*$`
diceRollRegex = `^(\d*)d(\d+)(([+-]\d+)+)?$`
modifierRegex = `[+-]?\d+`
)

Expand Down
2 changes: 1 addition & 1 deletion internal/discord/roll.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ func roll(i *discordgo.Interaction, opts ...Option) (string, error) {
return "", err
}

return fmt.Sprintf("%s = %d", output, value), nil
return fmt.Sprintf("%s = **%d**", output, value), nil
}

0 comments on commit f53e1ff

Please sign in to comment.