mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 06:16:01 +00:00
fix(coverage): fix coverage regex on Windows
This commit is contained in:
parent
84d4f3a252
commit
5e9955e828
@ -543,7 +543,6 @@ class ENS {
|
||||
}
|
||||
], (err) => {
|
||||
self.configured = true;
|
||||
console.log('all done');
|
||||
if (err && err !== NO_REGISTRATION) {
|
||||
self.logger.error('Error while deploying ENS contracts');
|
||||
self.logger.error(err.message || err);
|
||||
|
@ -162,7 +162,7 @@ class Solidity {
|
||||
let self = this;
|
||||
let input = {};
|
||||
let originalFilepath = {};
|
||||
|
||||
|
||||
async.waterfall([
|
||||
function prepareInput(callback) {
|
||||
async.each(contractFiles,
|
||||
@ -170,12 +170,13 @@ class Solidity {
|
||||
let filename = file.path;
|
||||
|
||||
for (let directory of self.embark.config.contractDirectories) {
|
||||
directory = directory.replace(/\\/g, '/');
|
||||
let match = new RegExp("^" + directory);
|
||||
filename = filename.replace(match, '');
|
||||
}
|
||||
|
||||
originalFilepath[filename] = file.path;
|
||||
|
||||
|
||||
file.prepareForCompilation(options.isCoverage)
|
||||
.then(fileContent => {
|
||||
input[file.path] = {content: fileContent.replace(/\r\n/g, '\n')};
|
||||
|
Loading…
x
Reference in New Issue
Block a user