From 29bed5adbd806a36c2eb5e82b041eb3676572e90 Mon Sep 17 00:00:00 2001 From: Dmitriy Lyner Date: Thu, 31 May 2018 14:27:14 -0600 Subject: [PATCH] rename parameter string to str purely to prevent confusion --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index fe7baf3e..fd8589a5 100644 --- a/index.js +++ b/index.js @@ -91,8 +91,8 @@ function createLoaderRules(languages, features, workers, publicPath) { const globals = { 'MonacoEnvironment': `(function (paths) { - function stripTrailingSlash(string) { - return string.replace(/\\/$/, ''); + function stripTrailingSlash(str) { + return str.replace(/\\/$/, ''); } return { getWorkerUrl: function (moduleId, label) {