Skip to content

Commit

Permalink
#23: Fixed error in gherkin tags parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinCelej committed Mar 2, 2023
1 parent 3f988a0 commit b671f23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Behaviours/Synergy.Behaviours.Testing/FeatureGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public static void Generate<TBehaviour>(

if (line.Trim().StartsWith("@"))
{
tags = Regex.Match(line, "\\@\\w+")
.Groups.Values.Select(g => g.Value).ToList();
tags = Regex.Matches(line, "\\@\\w+")
.Select(m=>m.Value).ToList();

if (include != null)
includeScenario = tags.Intersect(include)
Expand Down

0 comments on commit b671f23

Please sign in to comment.