Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wilcoxon opened this issue Jul 21, 2021 · 0 comments
Open

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

wilcoxon opened this issue Jul 21, 2021 · 0 comments

Comments

@wilcoxon
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants