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.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua
index 204a22a6..8048f8ef 100644
--- a/script/workspace/require-path.lua
+++ b/script/workspace/require-path.lua
@@ -169,9 +169,9 @@ function mt:findUrisByRequireName(suri, name)
local searcherMap = {}
for _, searcher in ipairs(searchers) do
- local fspath = searcher:gsub('%?', path)
- if self.scp.uri then
- local fullPath = workspace.getAbsolutePath(self.scp.uri, fspath)
+ local fspath = searcher:gsub('%?', path:gsub('%%', '%%%%'))
+ local fullPath = workspace.getAbsolutePath(self.scp.uri, fspath)
+ if fullPath then
local fullUri = furi.encode(fullPath)
if files.exists(fullUri)
and fullUri ~= suri then