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.
1 parent 43d135e commit cf934f4Copy full SHA for cf934f4
script/cli/doc/export.lua
@@ -60,8 +60,7 @@ function export.getLocalPath(uri)
60
local file_canonical = fs.canonical(furi.decode(uri)):string()
61
local doc_canonical = fs.canonical(DOC):string()
62
local relativePath = fs.relative(file_canonical, doc_canonical):string()
63
- local _, j = file_canonical:find(doc_canonical, 1, true)
64
- if not j then
+ if relativePath == "" or relativePath:sub(1, 2) == '..' then
65
-- not under project directory
66
return '[FOREIGN] ' .. file_canonical
67
end
0 commit comments