Skip to content

Commit

Permalink
Rename to GeneratedRegex
Browse files Browse the repository at this point in the history
  • Loading branch information
RehanSaeed committed Nov 9, 2022
1 parent 6cf6587 commit e7fee53
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:
run: dotnet tool restore
shell: pwsh
- name: "Dotnet Cake Build NPM"
run: dotnet cake --target=BuildNPM --verbosity=Diagnostic
run: dotnet cake --target=BuildNPM
shell: pwsh
- name: "Dotnet Cake Build"
run: dotnet cake --target=Build --verbosity=Diagnostic
run: dotnet cake --target=Build
shell: pwsh
- name: "Dotnet Cake Test"
run: dotnet cake --target=Test
Expand Down
4 changes: 2 additions & 2 deletions Source/DotnetNewUI/NuGet/PackageInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ public static string GetBase64Icon(Stream stream, string fileName)
return $"data:image/{fileType};base64,{base64Icon}";
}

[RegexGenerator("^(?<packagename>.*)\\.(?<version>\\d*\\.\\d*\\.\\d*-?.*)\\.nupkg$")]
[GeneratedRegex("^(?<packagename>.*)\\.(?<version>\\d*\\.\\d*\\.\\d*-?.*)\\.nupkg$")]
private static partial Regex PackageNameAndVersionRegex();

[RegexGenerator("^(content/)?(?<template>.*)/\\.template\\.config")]
[GeneratedRegex("^(content/)?(?<template>.*)/\\.template\\.config")]
private static partial Regex TemplateConfigDirsRegex();
}
}
2 changes: 1 addition & 1 deletion Source/DotnetNewUI/Services/DotNetCli.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static string FormatAsCliArguments(IReadOnlyDictionary<string, string?> a
.Where(x => x.Value is not null)
.Select(x => $"--{x.Key} \"{x.Value!.Replace('\\', '/')}\""));

[RegexGenerator("^(?<version>.*) \\[(?<path>.*)\\]$")]
[GeneratedRegex("^(?<version>.*) \\[(?<path>.*)\\]$")]
private static partial Regex DotnetListSdkRegex();
}
}

0 comments on commit e7fee53

Please sign in to comment.