From 15c9b201aa5b329075f52eda1ccd628c953b5003 Mon Sep 17 00:00:00 2001 From: nobody Date: Sun, 15 Nov 2020 12:33:44 +0100 Subject: [PATCH] Fixed: File extension (#155) --- core/shorthands.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/shorthands.js b/core/shorthands.js index 7aca77f4..d0316d9d 100644 --- a/core/shorthands.js +++ b/core/shorthands.js @@ -136,9 +136,8 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) { 'bundle': '' }; } else if ((channelHost + channelPath).startsWith('cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/')) { - let file = helpers.extractFilenameFromPath(channelPath); - if (file.endsWith('js')) { - file = file + 'm'; + if (channelPath.endsWith('js')) { + channelPath += 'm'; } lastVersion = targets.setLastVersion('/select2/4.'); return {