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

Shortcut swallowing backslash #8

Closed
MohrJonas opened this issue Jul 19, 2022 · 2 comments
Closed

Shortcut swallowing backslash #8

MohrJonas opened this issue Jul 19, 2022 · 2 comments

Comments

@MohrJonas
Copy link

When having a backslash in the text that is supposed to be expanded, it gets "swallowed" and is missing from the capture group
Regex example:

^set ((?:\S+\ ?)+)$

Testing text:

set x \pi

Expected content of capture 1: x \pi
Actual content: x pi
I don't really know why this happens.
Maybe it's got to do something with JavaScript's Regex implementation?

@jon-heard
Copy link
Owner

jon-heard commented Jul 20, 2022

Sorry for the delay on this. I've been busy with a new update, including the features we spoke of in the prior issue. I'll take a look at this this evening though. I only kind of understand issue, but I expect it'll make sense when I try it out.

@jon-heard
Copy link
Owner

I just put out a new release which fixes this bug. You can find more info here.

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

No branches or pull requests

2 participants