mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Fix basePath in IE.
Former-commit-id: 3c78a042183ffbb52c22a6979f71f842d6a1ea38
This commit is contained in:
@@ -54,7 +54,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var reBasename = /[\w.-]+$/,
|
var reBasename = /[\w.-]+$/,
|
||||||
basePath = (location.origin + location.pathname).split(/\btest\b/).slice(0, -1).join('test'),
|
basePath = ('//' + location.hostname + location.pathname).replace(/\btest\/$/, ''),
|
||||||
isModularize = /modularize/.test(ui.urlParams.build),
|
isModularize = /modularize/.test(ui.urlParams.build),
|
||||||
modulePath = ui.buildPath.replace(/\.js$/, ''),
|
modulePath = ui.buildPath.replace(/\.js$/, ''),
|
||||||
moduleMain = modulePath.match(reBasename)[0];
|
moduleMain = modulePath.match(reBasename)[0];
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var reBasename = /[\w.-]+$/,
|
var reBasename = /[\w.-]+$/,
|
||||||
basePath = (location.origin + location.pathname).split(/\btest\b/).slice(0, -1).join('test'),
|
basePath = ('//' + location.hostname + location.pathname).replace(/\btest\/$/, ''),
|
||||||
modulePath = ui.buildPath.replace(/\.js$/, ''),
|
modulePath = ui.buildPath.replace(/\.js$/, ''),
|
||||||
moduleMain = modulePath.match(reBasename)[0];
|
moduleMain = modulePath.match(reBasename)[0];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user