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

Fixed escaping #130

Merged
merged 1 commit into from
Apr 15, 2021
Merged

Fixed escaping #130

merged 1 commit into from
Apr 15, 2021

Conversation

RunDevelopment
Copy link
Collaborator

The fix in #126 was still wrong for some edge cases.

The problem we are trying to solve is that some characters get re-interpreted. I.e. in [A-B-C], transforming it to [AB-C] will cause the second - to become a range operator. We are dealing with a parser problem.

To fix this problem, I only look at the raw source code around the range I'm trying to fix. This makes detect these cases where characters get interpreted as something else way easier. The general idea is still the same as in #126.

Copy link
Owner

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful! Thank you.

@ota-meshi ota-meshi merged commit 53e830f into issue104 Apr 15, 2021
@ota-meshi ota-meshi deleted the issue104-fix branch April 15, 2021 23:25
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

Successfully merging this pull request may close these issues.

None yet

2 participants