Bugfix require() not replacing dots with slashes

This commit is contained in:
Alessandro Proto 2023-02-01 16:43:55 +01:00
parent dc7d6bde27
commit e5e2d58f62

View file

@ -164,6 +164,9 @@ internal class Sandbox
var libname = L.CheckString(1); var libname = L.CheckString(1);
var searchpath = L.CheckString(2); var searchpath = L.CheckString(2);
libname = libname.Replace('.', '/');
var possiblePaths = searchpath var possiblePaths = searchpath
.Split(';') .Split(';')
.Select(p => p.Replace("?", libname)); .Select(p => p.Replace("?", libname));