Skip to content

if/switch can't check non-numeric values #130

@wilcoxon

Description

@wilcoxon

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions