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 of backslash #40

Merged

Conversation

BrianHenryIE
Copy link
Contributor

I was getting doubly prefixed classes in one case, I believe because the library (GuzzleHttp) was a dependency of two of my requirements.

The regex for excluding backslash, i.e. to only match from the beginning of classes, was incorrect. I have added a single \ to properly escape the intended \.

PhpStorm

@coenjacobs
Copy link
Owner

Nice! This is a far more error proof approach to handling this replace.

@coenjacobs coenjacobs merged commit d63631b into coenjacobs:master May 23, 2020
@BrianHenryIE BrianHenryIE deleted the Regex-fix-for-preceeding-backslash branch May 3, 2021 02:22
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.

2 participants