Commit c2047b3b authored by Dave Hoover's avatar Dave Hoover

Safer handling of imports with leading ./

parent 76aa0228
......@@ -203,7 +203,11 @@ function Compiler (editor, handleGithubCall, outputField, hidingRHP, updateFiles
for (var fileName in files) {
var match;
while ((match = importRegex.exec(files[fileName]))) {
importHints.push(match[1]);
var importFilePath = match[1];
if (importFilePath.startsWith('./')) {
importFilePath = importFilePath.slice(2);
}
importHints.push(importFilePath);
}
}
while (importHints.length > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment