We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
../?.lua
1 parent db8127a commit 117d3a8Copy full SHA for 117d3a8
script/workspace/require-path.lua
@@ -98,28 +98,6 @@ function mt:getRequireResultByPath(path)
98
end
99
100
101
- -- handle `../?.lua`
102
- local parentCount = 0
103
- for _ = 1, 1000 do
104
- if searcher:match '^%.%.[/\\]' then
105
- parentCount = parentCount + 1
106
- searcher = searcher:sub(4)
107
- else
108
- break
109
- end
110
111
- if parentCount > 0 then
112
- local parentPath = libraryPath
113
- or (self.scp.uri and furi.decode(self.scp.uri))
114
- if parentPath then
115
- local tail
116
- for _ = 1, parentCount do
117
- parentPath, tail = parentPath:match '^(.+)[/\\]([^/\\]*)$'
118
- currentPath = tail .. '/' .. currentPath
119
120
121
122
-
123
repeat
124
cutedPath = currentPath:sub(pos)
125
head = currentPath:sub(1, pos - 1)
0 commit comments