nvm string syntax. oops

This commit is contained in:
Dmitriy Lyner 2018-05-31 14:29:24 -06:00
parent 7a8774bafd
commit fa97cf3a83

View file

@ -92,7 +92,7 @@ function createLoaderRules(languages, features, workers, publicPath) {
const globals = {
'MonacoEnvironment': `(function (paths) {
function stripTrailingSlash(str) {
return str.replace(/\/$/, '');
return str.replace(/\\/$/, '');
}
return {
getWorkerUrl: function (moduleId, label) {