Skip to content

Commit

Permalink
fix(basic): Complex array for array definition should be allowed.
Browse files Browse the repository at this point in the history
Fixes #9
  • Loading branch information
bruno-morel committed Jun 23, 2020
1 parent 5a8a6d5 commit c5d51ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function isPotentialStepFunctionForScenario( scenarioDefinition, regStepFunc ){
}

function evaluateStepFuncEndVsScenarioEnd( stepFunctionDef, scenarioDefinition ) {
if( /\([.\\]+[sSdDwWbB*][*?+]?\)|\(\[.*\](?:[+?*]{1}|\{\d\})\)/g.test( stepFunctionDef ) ){
if( /\(.*(\?\:)?[.\\]*[sSdDwWbB*][*?+]?.*\)|\(\[.*\](?:[+?*]{1}|\{\d\})\)/g.test( stepFunctionDef ) ){
return new RegExp( stepFunctionDef ).test( scenarioDefinition )
}

Expand Down

0 comments on commit c5d51ec

Please sign in to comment.