From 7a8774bafd62ac13eeadf7e05dc7bb1d1f557874 Mon Sep 17 00:00:00 2001 From: Dmitriy Lyner Date: Thu, 31 May 2018 14:28:50 -0600 Subject: [PATCH] an extra \ snuck in compared to origina ldeleted function --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fd8589a5..0d119b9a 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) {