Skip to content

Commit 85ff984

Browse files
committed
fix #269
1 parent 6b7ea18 commit 85ff984

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

script/workspace/require-path.lua

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function m.getVisiblePath(path, searchers)
3333
m.cache[path] = result
3434
local pos = 1
3535
if libraryPath then
36+
libraryPath = libraryPath:gsub('^[/\\]+', '')
3637
pos = #libraryPath + 2
3738
end
3839
repeat

0 commit comments

Comments
 (0)