From 1130aab98de2e65eee4ae3a891ec40bec2f4c6bb Mon Sep 17 00:00:00 2001 From: Drew Short Date: Sat, 13 Jan 2018 04:13:21 -0600 Subject: [PATCH] Adapting to lua pattern matching for minified downloads --- src/spm/spm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spm/spm.lua b/src/spm/spm.lua index 3e4ecb6..daa190f 100644 --- a/src/spm/spm.lua +++ b/src/spm/spm.lua @@ -431,7 +431,7 @@ local function installPackage(requestedPackage, installPath, doUpdate) end if packageInfo.minified or options.m then - filePath = string.gsub(filePath, "(.+)\\.(.+)$", "%1\\.min\\.%2") + filePath = string.gsub(filePath, "(.+)%.lua$", "%1") .. ".min.lua" end local success = pcall(downloadFile, repositoryPath .. "/" .. filePath, installedPath)