Skip to content

Commit e21402a

Browse files
committed
Fix plugin arg arrays when paths contain numbers
Specifically to prevent it from trying to match the tostring-ed numeric number keys of plain arrays with config folder paths, which can lead to false positives if those paths contain numbers and then ultimately results in only a single argument out of the arguments array being passed along
1 parent 85cb445 commit e21402a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/plugin.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ local function initPlugin(uri)
156156
end
157157
for i, pluginConfigPath in ipairs(pluginConfigPaths) do
158158
local myArgs = args
159-
if args then
159+
if args and not args[1] then
160160
for k, v in pairs(args) do
161161
if pluginConfigPath:find(k, 1, true) then
162162
myArgs = v

0 commit comments

Comments
 (0)