26 references to ScrubByRegex
dotnet-new.IntegrationTests (26)
CommonTemplatesTests.cs (2)
223
.AddScrubber(sb => sb.Replace(finalProjectName, "%PROJECT_PATH%").UnixifyDirSeparators().
ScrubByRegex
("(^ Restored .* \\()(.*)(\\)\\.)", "$1%DURATION%$3", RegexOptions.Multiline), "txt")
423
.AddScrubber(sb => sb.Replace(finalProjectName, "%PROJECT_PATH%").UnixifyDirSeparators().
ScrubByRegex
("(^ Restored .* \\()(.*)(\\)\\.)", "$1%DURATION%$3", RegexOptions.Multiline), "txt")
DotnetNewDebugOptionsTests.cs (3)
82
output.
ScrubByRegex
("Version=[A-Za-z0-9\\.]+", "Version=<version>");
84
output.
ScrubByRegex
("PublicKeyToken=[A-Za-z0-9]+", "PublicKeyToken=<token>");
89
output.
ScrubByRegex
("Assembly *", "Assembly");
DotnetNewInstallTests.Approval.cs (5)
25
output.
ScrubByRegex
(" Microsoft\\.DotNet\\.Common\\.ItemTemplates@[A-Za-z0-9.-]+", " Microsoft.DotNet.Common.ItemTemplates@%VERSION%");
44
output.
ScrubByRegex
(" Microsoft\\.DotNet\\.Common\\.ItemTemplates::[A-Za-z0-9.-]+", " Microsoft.DotNet.Common.ItemTemplates::%VERSION%");
45
output.
ScrubByRegex
(" Microsoft\\.DotNet\\.Common\\.ItemTemplates@[A-Za-z0-9.-]+", " Microsoft.DotNet.Common.ItemTemplates@%VERSION%");
64
output.
ScrubByRegex
(" Microsoft\\.DotNet\\.Common\\.ItemTemplates@[A-Za-z0-9.-]+", " Microsoft.DotNet.Common.ItemTemplates@%VERSION%");
119
output.
ScrubByRegex
("dotnetcli \\(version: [A-Za-z0-9.-]+\\)", "dotnetcli (version: %VERSION%)");
DotnetNewInstantiateTests.Approval.cs (8)
108
output.
ScrubByRegex
("Package *", "Package");
251
output.
ScrubByRegex
("Package *", "Package");
515
output.
ScrubByRegex
("'Microsoft\\.DotNet\\.Common\\.ItemTemplates@[A-Za-z0-9.-]+' is available in", "'Microsoft.DotNet.Common.ItemTemplates@%VERSION%' is available in");
516
output.
ScrubByRegex
("install Microsoft\\.DotNet\\.Common\\.ItemTemplates@[A-Za-z0-9.-]+", "install Microsoft.DotNet.Common.ItemTemplates@%VERSION%");
543
output.
ScrubByRegex
("Package *", "Package");
565
output.
ScrubByRegex
("\\-\\-debug\\:custom\\-hive [A-Za-z0-9\\-\\.\\\\\\/\\{\\}\\:_]+", "--debug:custom-hive %SETTINGS DIRECTORY%");
566
output.
ScrubByRegex
("dotnetcli \\(version: [A-Za-z0-9.-]+\\)", "dotnetcli (version: %VERSION%)");
587
output.
ScrubByRegex
("dotnetcli \\(version: [A-Za-z0-9.-]+\\)", "dotnetcli (version: %VERSION%)");
PostActionTests.Approval.cs (4)
37
output.
ScrubByRegex
("(?<=Restoring %working directory%(\\\\|\\/)MyProject.csproj:\\n)(.*?)(?=\\nRestore succeeded)", "%RESTORE CALLBACK OUTPUT%", System.Text.RegularExpressions.RegexOptions.Singleline);
91
output.
ScrubByRegex
($"(?<=Adding a package reference Newtonsoft.Json \\(version: {ToolsetInfo.GetNewtonsoftJsonPackageVersion()}\\) to project file %working directory%(\\\\|\\/)MyProject.csproj:\\n)(.*?)(?=\\nSuccessfully added a reference to the project file.)", "%CALLBACK OUTPUT%", System.Text.RegularExpressions.RegexOptions.Singleline);
122
output.
ScrubByRegex
("(?<=to project file %working directory%(\\\\|\\/)Project1(\\\\|\\/)Project1.csproj:\\n)(.*?)(?=\\nSuccessfully added a reference to the project file.)", "%CALLBACK OUTPUT%", System.Text.RegularExpressions.RegexOptions.Singleline);
162
output.
ScrubByRegex
("(?<=solution folder: src\\n)(.*?)(?=\\nSuccessfully added project\\(s\\) to a solution file.)", "%CALLBACK OUTPUT%", System.Text.RegularExpressions.RegexOptions.Singleline);
VerifyScrubbers.cs (2)
15
output.
ScrubByRegex
("(Details: )([^\\r\\n]*)", $"Details: %DETAILS%");
23
output.
ScrubByRegex
("---[- ]*", "%TABLE HEADER DELIMITER%");
WebProjectsTests.cs (2)
105
.AddScrubber(output => output.
ScrubByRegex
("[A-Za-z0-9\\.]+-third-party-notices", "%version%-third-party-notices"));
127
.AddScrubber(output => output.
ScrubByRegex
("[A-Za-z0-9\\.]+-third-party-notices", "%version%-third-party-notices"));