Skip to content

Fix path replacement #24

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

Merged
merged 1 commit into from
Dec 7, 2015
Merged

Fix path replacement #24

merged 1 commit into from
Dec 7, 2015

Conversation

noahd1
Copy link
Contributor

@noahd1 noahd1 commented Dec 7, 2015

Previously we were searching for all instances of "/code" to an empty
string for reporting back to Code Climate. This was resulting in any
file that had a nested directory called "code" to be replaced which
created issues with display.

Change the replacement of "/code" to a regular expression that anchors
the pattern so that we only replace the first instance.

Previously we were searching for all instances of "/code" to an empty
string for reporting back to Code Climate. This was resulting in any
file that had a nested directory called "code" to be replaced which
created issues with display.

Change the replacement of "/code" to a regular expression that anchors
the pattern so that we only replace the first instance.
@gdiggs
Copy link
Contributor

gdiggs commented Dec 7, 2015

LGTM

noahd1 added a commit that referenced this pull request Dec 7, 2015
@noahd1 noahd1 merged commit aef2077 into master Dec 7, 2015
@noahd1 noahd1 deleted the nd/fix-path-replacement branch December 7, 2015 21:57
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