Skip to content

Commit 049a523

Browse files
Sebmasterdomenic
authored andcommitted
Make test shim replacer more error resistant
1 parent cac000a commit 049a523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/w3c/w3ctest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var jsdom = require("../..");
77

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

1313
if (input === source) {

0 commit comments

Comments
 (0)