Unverified Commit 65617416 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1009 from ethereum/yann300-patch-6

Fix importing Solidity File
parents 6d296658 001142fc
...@@ -313,7 +313,7 @@ function Compiler (handleImportCall) { ...@@ -313,7 +313,7 @@ function Compiler (handleImportCall) {
while ((match = importRegex.exec(files[fileName].content))) { while ((match = importRegex.exec(files[fileName].content))) {
var importFilePath = match[1] var importFilePath = match[1]
if (importFilePath.startsWith('./')) { if (importFilePath.startsWith('./')) {
var path = /(.*\/).*/.exec(target) var path = /(.*\/).*/.exec(fileName)
if (path !== null) { if (path !== null) {
importFilePath = importFilePath.replace('./', path[1]) importFilePath = importFilePath.replace('./', path[1])
} else { } else {
......
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