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 regex that generates html for 'new' keyword #1201

Closed
wants to merge 2 commits into from

Conversation

jrhdoty
Copy link
Contributor

@jrhdoty jrhdoty commented Apr 25, 2014

When generating the html for tests, if a variable begins with the letters 'new', those letters are incorrectly separated from the rest of the string and appear as the 'new' keyword. E.g. "newSolutionResult" becomes "new SolutionResult". The fix was a one line change to a regex. Below is an example:

Bug Example:
incorrect html generation

Fix Example:
fixed html generation v1

@tj
Copy link
Contributor

tj commented May 1, 2014

oops, \s* won't fix it though, it should be [ \t]+

@jrhdoty
Copy link
Contributor Author

jrhdoty commented May 1, 2014

Good call, thanks for the feedback! I've pushed with the update.

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.

None yet

2 participants