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

Add a check if substitutions exists #46945

Merged
merged 12 commits into from
Aug 19, 2024
Prev Previous commit
Next Next commit
Update testharness.js
  • Loading branch information
asamuzaK committed Jul 2, 2024
commit e2ff856a3a5c1ec793e1f93d7ff99a32a5867b40
2 changes: 1 addition & 1 deletion resources/testharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -4404,7 +4404,7 @@
}), function(x) {return x !== null;});
}

function substitute_single(template, substitutions = [])
function substitute_single(template, substitutions = {})
{
var substitution_re = /\$\{([^ }]*)\}/g;

Expand Down