From 001142fc9b6548b785925ac8732154acde2f08c1 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 23 Oct 2018 13:17:33 +0200 Subject: [PATCH] Update compiler.js --- remix-solidity/src/compiler/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix-solidity/src/compiler/compiler.js b/remix-solidity/src/compiler/compiler.js index 1eeec59da7..72427c22cb 100644 --- a/remix-solidity/src/compiler/compiler.js +++ b/remix-solidity/src/compiler/compiler.js @@ -313,7 +313,7 @@ function Compiler (handleImportCall) { while ((match = importRegex.exec(files[fileName].content))) { var importFilePath = match[1] if (importFilePath.startsWith('./')) { - var path = /(.*\/).*/.exec(target) + var path = /(.*\/).*/.exec(fileName) if (path !== null) { importFilePath = importFilePath.replace('./', path[1]) } else {