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 error message string substitutions #570

merged 2 commits into from Dec 14, 2015


Copy link

jurko-gospodnetic commented Dec 14, 2015

This is a fix for issue #560.

Tests included.

I noticed the getMessage tests currently seem to be missing several getMessage() implementation features (e.g. how different objects get serialized to strings), but I did not go into implementing those here.

String.prototype.replace() had some extra undesireable substitution behaviour
when it replaces a tag with a string containing some internal tags like `$$`,
or `$'`.

For more detailed information see:
Copy link

keithamus commented Dec 14, 2015

Great work @jurko-gospodnetic 😄

keithamus added a commit that referenced this pull request Dec 14, 2015

Fix error message string substitutions
@keithamus keithamus merged commit a1e8373 into chaijs:master Dec 14, 2015
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
@jurko-gospodnetic jurko-gospodnetic deleted the jurko-gospodnetic:fix-error-message-string-substitutions branch Dec 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.