Update importcode.src

oops
This commit is contained in:
Clover Foxx 2025-02-13 12:52:35 -08:00 committed by GitHub
parent 151753bb4e
commit 2a08a660dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ handleFileImports = function(pathSrc)
//-- handle relative imports
if text[:2] == "./" then text = parent_path(pathSrc)+text[2:]
//-- handle non-dot relative imports
if text[0] != "/" then text = parent_path(pathSrc)+"/"+text[1:]
if text[0] != "/" then text = parent_path(pathSrc)+"/"+text
//-- handle nested imports
if text[-4:]==".src" then
result = handleFileImports(text)