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

Don't change the double dash in HTML comments to an en dash #32

Merged
merged 2 commits into from Oct 26, 2015
Merged

Don't change the double dash in HTML comments to an en dash #32

merged 2 commits into from Oct 26, 2015

Conversation

JoshOldenburg
Copy link
Contributor

This is my solution to #27. The regex is nasty because JavaScript doesn't support negative lookbehinds, but it (seems) to work.

Thanks!

An extraneous colon made the test never pass.
This uses a regex lookahead to ensure there is no > after the double
dash. If it matches either the beginning of the line, or any characters
other than <!, then it replaces the double dash with an en dash.
ekalinin added a commit that referenced this pull request Oct 26, 2015
Don't change the double dash in HTML comments to an en dash
@ekalinin ekalinin merged commit 52988b8 into ekalinin:master Oct 26, 2015
@ekalinin
Copy link
Owner

Thanks!

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