Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Commit 77f1ee1

Browse files
thomasbrugginkstajs
authored andcommitted
Fixed the regex for removing MSTest descriptions (#55)
Thanks! Fixes #54
1 parent fc084b3 commit 77f1ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SpecFlow.NetCore/Fixer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private void FixTests(DirectoryInfo directory)
117117

118118
private static string FixMsTest(string content)
119119
{
120-
content = Regex.Replace(content, ".*Microsoft.VisualStudio.TestTools.UnitTesting.Description.*", "");
120+
content = Regex.Replace(content, @"\[Microsoft\.VisualStudio\.TestTools\.UnitTesting\.Description.*?\)]", "", RegexOptions.Singleline);
121121
return content;
122122
}
123123

0 commit comments

Comments
 (0)