diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-01-03 14:10:41 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-01-03 14:10:41 -0500 |
commit | 0479d4e7161deea5760b717843cf30b2e7db0a47 (patch) | |
tree | 8885d37c1987a80cc7cac8f3dd6e1711e5ad6813 /src | |
parent | 525567a3a547a1b68244ce3ac60b37623ece23b4 (diff) | |
download | lite-xl-plugin-manager-0479d4e7161deea5760b717843cf30b2e7db0a47.tar.gz lite-xl-plugin-manager-0479d4e7161deea5760b717843cf30b2e7db0a47.zip |
Grabbed id.
Diffstat (limited to 'src')
-rw-r--r-- | src/lpm.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index 0539e33..5529e01 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1101,7 +1101,7 @@ function Bottle:all_plugins() } for i, plugin_path in ipairs(common.grep(plugin_paths, function(e) return system.stat(e) end)) do for j, v in ipairs(system.ls(plugin_path)) do - local id = v:gsub("%.lua$", ""):lower():gsub("[a-z0-9%-_]", "") + local id = v:gsub("%.lua$", ""):lower():gsub("[^a-z0-9%-_]", "") local path = plugin_path .. PATHSEP .. v local matching = hash[id] and common.grep(hash[id], function(e) return not Plugin.is_plugin_different(e.local_path, path) end)[1] if i == 2 or not hash[id] or not matching then @@ -1284,7 +1284,7 @@ local function lpm_lite_xl_list() is_system = lite_xl:is_system(), is_installed = lite_xl:is_installed(), status = (lite_xl:is_installed() or lite_xl:is_system()) and (lite_xl:is_local() and "local" or "installed") or "available", - local_path = lite_xl.local_path + local_path = lite_xl:is_installed() and lite_xl.local_path }) max_version = math.max(max_version, #lite_xl.version) end @@ -1299,7 +1299,7 @@ local function lpm_lite_xl_list() is_system = lite_xl:is_system(), is_installed = lite_xl:is_installed(), status = (lite_xl:is_installed() or lite_xl:is_system()) and (lite_xl:is_local() and "local" or "installed") or "available", - local_path = lite_xl.local_path + local_path = lite_xl:is_installed() and lite_xl.local_path }) max_version = math.max(max_version, #lite_xl.version) end |