小调整

This commit is contained in:
2betop 2020-10-22 15:16:12 +08:00
parent 901b09f47b
commit 1b5593c0c7

View File

@ -130,7 +130,7 @@ module.exports = function (ret, pack, settings, opt) {
try {
throw new Error()
} catch (e) {
d = (/((?:https?|file)\:.*)$/.test(e.stack) && RegExp.$1).replace(/\\/[^\\/]*$/, '');
d = (/((?:https?|file)\:.*)$/.test(e.stack) ? RegExp.$1 : '').replace(/\\/[^\\/]*$/, '');
}
${contents.replace(/\"url\"\s*\:\s*('|")(\.\/.*)\1/g, function (
_,