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

Fix minor bug in URL redaction with missed trailing forward slash #9

Merged
merged 1 commit into from
Aug 3, 2017

Conversation

JaredBett
Copy link
Contributor

This fixes a minor bug where a trailing forward slash would get missed by the URL redaction (e.g. "http://example.com/foo/" was becoming "URL/")

@coveralls
Copy link

coveralls commented Aug 3, 2017

Coverage Status

Coverage remained the same at 96.97% when pulling f684d51 on fix-redact-url into 6168a62 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.97% when pulling f684d51 on fix-redact-url into 6168a62 on master.

@@ -169,7 +169,7 @@ defineTest('index.js', function (Redactor) {

it('should replace URLs', function () {
redactor.redact('My homepage is http://example.com').should.equal('My homepage is URL');
redactor.redact('ip http://127.0.01/example.html test').should.equal('ip URL test');
redactor.redact('ip http://127.0.0.1/example.html test').should.equal('ip URL test');
Copy link
Contributor

Choose a reason for hiding this comment

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

👌 😄

@JaredBett JaredBett merged commit 33d9ce1 into master Aug 3, 2017
@JaredBett JaredBett deleted the fix-redact-url branch August 3, 2017 21:54
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