summaryrefslogtreecommitdiff
path: root/script/workspace/require-path.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/workspace/require-path.lua')
-rw-r--r--script/workspace/require-path.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua
index 52151dba..0fec6cc9 100644
--- a/script/workspace/require-path.lua
+++ b/script/workspace/require-path.lua
@@ -60,10 +60,8 @@ function m.getVisiblePath(path)
pos = currentPath:match('[/\\]+()', pos)
if platform.OS == 'Windows' then
searcher = searcher :gsub('[/\\]+', '\\')
- :gsub('^[/\\]+', '')
else
searcher = searcher :gsub('[/\\]+', '/')
- :gsub('^[/\\]+', '')
end
local expect = getOnePath(cutedPath, searcher)
if expect then