aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-06-27 23:26:13 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-06-27 23:26:13 -0400
commit42a9b8061c887e61f17cd7b24aabc5d3efc3097d (patch)
tree9ea37311a780a881cc8c7c2965d890065eddbaab /src
parent68bffd2b3bac0e2cecd62ee016cede743c721af4 (diff)
downloadlite-xl-plugin-manager-42a9b8061c887e61f17cd7b24aabc5d3efc3097d.tar.gz
lite-xl-plugin-manager-42a9b8061c887e61f17cd7b24aabc5d3efc3097d.zip
Improved generation of manifests to not exclude -.
Diffstat (limited to 'src')
-rw-r--r--src/lpm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index eb61669..4d92faf 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1085,7 +1085,7 @@ function Repository:generate_manifest(repo_id)
for line in io.lines(path .. addon_dir .. PATHSEP .. file) do
local _, _, mod_version = line:find("%-%-.*mod%-version:%s*(%w+)")
if mod_version then addon.mod_version = mod_version end
- local _, _, required_addon = line:find("require [\"']plugins.([%w_]+)")
+ local _, _, required_addon = line:find("require [\"']plugins.([%w_-]+)")
if required_addon and not CORE_PLUGINS[required_addon] then if required_addon ~= addon.id then if not addon.dependencies then addon.dependencies = {} end addon.dependencies[required_addon] = ">=0.1" end end
end
if addon_map[addon.id] then