Skip to content

Commit

Permalink
refactor(core): switch order of regex vs exact match
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardobridge committed May 13, 2024
1 parent 562344f commit dd63f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ function runScenario(script, metrics, runState, contextVars, options) {
scenario.name
);
const hasScenarioByName = scenario.name === options.scenarioName;
const hasScenario = hasScenarioByRegex || hasScenarioByName;
const hasScenario = hasScenarioByName || hasScenarioByRegex;

if (hasScenario) {
foundIndex = index;
Expand Down

0 comments on commit dd63f78

Please sign in to comment.