Skip to content

Conversation

@rriemann
Copy link

No description provided.

# other | symbols should be escaped
# we have "|$" in our regexp - do not touch it
rule = re.sub("(\|)[^$]", r"\|", rule)
rule = re.sub("(\|)(?!\$)", '\|', rule)
Copy link
Member

Choose a reason for hiding this comment

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

💄 I would add the r prefix to both strings instead of removing it, for future-proofing. But the suggested changes should work.

Suggested change
rule = re.sub("(\|)(?!\$)", '\|', rule)
rule = re.sub(r"(\|)(?!\$)", r'\|', rule)

Copy link
Author

Choose a reason for hiding this comment

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

That's too long ago. I changed projects long ago. Do I have to accept the suggestions or could you do it as well?

Copy link
Member

Choose a reason for hiding this comment

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

We can, don’t worry, and it’s not a deal breaker anyway. I’ll wait for a second approval, though.

PS: Thank you very much for your patch, I’m deeply sorry for the delay.

@Gallaecio Gallaecio changed the title fixes #15 with negative looka-ahead regexp [MRG+1] fixes #15 with negative look-ahead regexp Jun 26, 2019
@99hansling
Copy link

99hansling commented May 1, 2021

The modification didn't pass the continuous-integration/travis-ci/pr because of failure on pypy, so it isn't available on current github code. Would you consider fix this? Also, the other pull requests modification isn't available as well.

@Gallaecio
Copy link
Member

This is not blocked by the CI failure, it only requires a second maintainer to approve.

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.

3 participants