Skip to content

Conversation

@vpetrovykh
Copy link
Contributor

Elvis, can you please verify that this fix works for you, too?

This is a case of semantically equivalent regex not being computationally equivalent. The issue also relates to how negative character classes (e.g. [^abc]) are treated. In the end I had to replace something of the form (A | B)* with A* (BA*)* to avoid grinding the regex engine to a halt.

Issue #150.

This is a case of semantically equivalent regex not being
computationally equivalent. The issue also relates to how negative
character classes (e.g. `[^abc]`) are treated. In the end I had to
replace something of the form `(A | B)*` with `A* (BA*)*` to avoid
grinding the regex engine to a halt.

Issue #150.
@vpetrovykh vpetrovykh requested a review from elprans October 3, 2018 01:26
Copy link
Member

@elprans elprans left a comment

Choose a reason for hiding this comment

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

I confirm that this fixes MagicPython in VSCode for me.

@1st1 1st1 merged commit 1b72e04 into master Oct 4, 2018
@1st1 1st1 deleted the bug150 branch October 4, 2018 19:56
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.

4 participants