Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
samhatoum committed Sep 22, 2016
1 parent 4a44ad4 commit 299dd55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/cucumber/cli/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ function Configuration(options, args) {
}

var expandedFeaturePaths = Cucumber.Cli.FeaturePathExpander.expandPaths(unexpandedFeaturePaths);

var compilerOptionPattern = /^([^:]+):(.+)$/;

function getCompilerExtensions() {
return options.compiler.map(function(compiler) {
return compiler.split(':')[0];
return compilerOptionPattern.exec(compiler)[1];
});
}

function getCompilerModules() {
return options.compiler.map(function(compiler) {
return compiler.split(':')[1];
return compilerOptionPattern.exec(compiler)[2];
});
}

Expand Down

0 comments on commit 299dd55

Please sign in to comment.