Skip to content

Commit

Permalink
test: replace string concatenation with templates
Browse files Browse the repository at this point in the history
PR-URL: #15903
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
cleong-tc authored and MylesBorins committed Oct 11, 2017
1 parent a625d82 commit 547c284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-whatwg-url-parsing.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ for (const test of failureTests) {
return false;

// The input could be processed, so we don't do strict matching here
const match = (error + '').match(/Invalid URL: (.*)$/);
const match = (`${error}`).match(/Invalid URL: (.*)$/);
if (!match) {
return false;
}
Expand Down

0 comments on commit 547c284

Please sign in to comment.