diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-06-27 23:26:13 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-06-27 23:26:13 -0400 |
commit | 42a9b8061c887e61f17cd7b24aabc5d3efc3097d (patch) | |
tree | 9ea37311a780a881cc8c7c2965d890065eddbaab | |
parent | 68bffd2b3bac0e2cecd62ee016cede743c721af4 (diff) | |
download | lite-xl-plugin-manager-42a9b8061c887e61f17cd7b24aabc5d3efc3097d.tar.gz lite-xl-plugin-manager-42a9b8061c887e61f17cd7b24aabc5d3efc3097d.zip |
Improved generation of manifests to not exclude -.
-rw-r--r-- | src/lpm.lua | 2 |
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 |