From e5e2d58f62ad3b4d1f391ab175e3fcdfa011e984 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Wed, 1 Feb 2023 16:43:55 +0100 Subject: [PATCH] Bugfix require() not replacing dots with slashes --- Capy64/Runtime/Sandbox.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Capy64/Runtime/Sandbox.cs b/Capy64/Runtime/Sandbox.cs index 6e1872c..ccae526 100644 --- a/Capy64/Runtime/Sandbox.cs +++ b/Capy64/Runtime/Sandbox.cs @@ -164,6 +164,9 @@ internal class Sandbox var libname = L.CheckString(1); var searchpath = L.CheckString(2); + + libname = libname.Replace('.', '/'); + var possiblePaths = searchpath .Split(';') .Select(p => p.Replace("?", libname));