Skip to content

Commit 905ce58

Browse files
rmwesleyyoussefadly237
authored andcommitted
fix Windows imports: match / and \ on path regex
1 parent 1e5a3cb commit 905ce58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Add plugin directory to package path for module loading
2-
local script_path = debug.getinfo(1, 'S').source:match('@?(.*/)') or './'
2+
local script_path = debug.getinfo(1, 'S').source:match('@?(.*[/\\])') or './'
33
package.path = script_path .. '?.lua;' .. script_path .. '?/init.lua;' .. package.path
44

55
local utils = require('utils')

0 commit comments

Comments
 (0)