Update importcode.src

oops 2
This commit is contained in:
Clover Foxx 2025-02-13 12:59:05 -08:00 committed by GitHub
parent 0b5fcf74ee
commit af71f9cc01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ handleFileImports = function(pathSrc)
if text.len < 1 then continue
//-- handle relative imports
if text[:2] == "./" then text = parent_path(pathSrc)+text[2:]
if text[:2] == "./" then text = parent_path(pathSrc)+text[1:]
//-- handle non-dot relative imports
if text[0] != "/" then text = parent_path(pathSrc)+"/"+text
//-- handle nested imports