Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request freeCodeCamp#14671 from techstonia/fix/code-tags-i…
Browse files Browse the repository at this point in the history
…n-console

Code tags don't appear in output anymore
  • Loading branch information
dhcodes authored May 4, 2017
2 parents 0caef00 + 9f60f40 commit eb923b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/frame-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ document.addEventListener('DOMContentLoaded', function() {
if (assertIndex !== -1) {
message = message.slice(0, assertIndex);
}
message = message.replace(/<code>(.*)<\/code>/, '$1');
message = message.replace(/<code>(.*?)<\/code>/g, '$1');
newTest.err = err.message + '\n' + err.stack;
newTest.stack = err.stack;
newTest.message = message;
Expand Down

0 comments on commit eb923b9

Please sign in to comment.