Skip to content

Commit

Permalink
Make test shim replacer more error resistant
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebmaster authored and domenic committed Jul 16, 2014
1 parent cac000a commit 049a523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/w3c/w3ctest.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var jsdom = require("../..");

function createJsdom(source, url, t) {
var input = source.replace(
/<script src="(.*?)\/resources\/testharnessreport.js"><\/script>/,
/<script src="?(.*?)\/resources\/testharnessreport.js"?><\/script>/,
"<script>window.shimTest();</script>");

if (input === source) {
Expand Down

0 comments on commit 049a523

Please sign in to comment.