Index: test/_common.js |
=================================================================== |
--- a/test/_common.js |
+++ b/test/_common.js |
@@ -108,17 +108,17 @@ |
function rewriteRequires(source) |
{ |
function escapeString(str) |
{ |
return str.replace(/(["'\\])/g, "\\$1"); |
} |
- return source.replace(/(\brequire\(["'])([^"']+)/g, (match, prefix, request) => |
+ return source.replace(/(\brequire\(["'])(abp-modules\/)?([^"']+)/g, (match, prefix, module, request) => |
{ |
if (request in knownModules) |
return prefix + escapeString(knownModules[request]); |
return match; |
}); |
} |
exports.createSandbox = function(options) |