Rolisteam/DiceParser

if/switch can't check non-numeric values

Opened this issue · 0 comments

This simple macro shows the issue. I also tried it with quotes around the f and d in the conditionals:

sym\((\d+)([fd])?(?:,(.*))?\) \2S[=f]{"got F"}[=d]{"got D"}{"got none"} true

The regex works fine and does indeed pick up the f or d (if present) as \2. I verified that with this simple macro:

sym\((\d+)([fd])?(?:,(.*))?\) "1 = \1; 2 = \2; 3 = \3" true