From b671f23c576841bf1bcd949e763b5f988b3188b2 Mon Sep 17 00:00:00 2001 From: Marcin Celej Date: Thu, 2 Mar 2023 07:46:17 +0100 Subject: [PATCH] #23: Fixed error in gherkin tags parsing --- Behaviours/Synergy.Behaviours.Testing/FeatureGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Behaviours/Synergy.Behaviours.Testing/FeatureGenerator.cs b/Behaviours/Synergy.Behaviours.Testing/FeatureGenerator.cs index 0ec4d3c..32529e5 100644 --- a/Behaviours/Synergy.Behaviours.Testing/FeatureGenerator.cs +++ b/Behaviours/Synergy.Behaviours.Testing/FeatureGenerator.cs @@ -60,8 +60,8 @@ public static void Generate( 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)