aboutsummaryrefslogtreecommitdiffstats
path: root/alv
diff options
context:
space:
mode:
Diffstat (limited to 'alv')
-rw-r--r--alv/copilot/base.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/alv/copilot/base.moon b/alv/copilot/base.moon
index b7823e6..cb82689 100644
--- a/alv/copilot/base.moon
+++ b/alv/copilot/base.moon
@@ -84,7 +84,7 @@ class Copilot
mod.root\make_ref!
else
last = @active_module
- prefix = if b = last.file\match'(.*)/[^/]*$' then b .. '/' else ''
+ prefix = if b = last.file\match'(.*/)[^/]*$' then b else ''
mod = @last_modules[name] or FSModule "#{prefix}#{name}.alv"
L\trace "entering module #{mod}"
@modules[name] = mod