Skip to content

Commit 0433023

Browse files
cleong-tcjoyeecheung
authored andcommitted
test: replace string concatenation with templates
1 parent 5ca1c7a commit 0433023

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/parallel/test-whatwg-url-parsing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ for (const test of failureTests) {
3636
return false;
3737

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

0 commit comments

Comments
 (0)