From fa97cf3a83246b9c560d52b5b1d00b043a0082a8 Mon Sep 17 00:00:00 2001 From: Dmitriy Lyner Date: Thu, 31 May 2018 14:29:24 -0600 Subject: [PATCH] nvm string syntax. oops --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0d119b9a..fd8589a5 100644 --- a/index.js +++ b/index.js @@ -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) {