Skip to content

Commit

Permalink
πŸ› fix URL regex values
Browse files Browse the repository at this point in the history
  • Loading branch information
rsking committed Feb 4, 2025
1 parent 7cc531e commit e149e12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EBook.Downloader.Standard.EBooks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ static string Strip(string author)
string? type = default;
if (sets.TryGetValues(collection.Value, out var value))
{
type = "sets";
type = "#sets";
}
else if (series.TryGetValues(collection.Value, out value))
{
Expand Down Expand Up @@ -847,12 +847,12 @@ private Program()
{
}

[System.Text.RegularExpressions.GeneratedRegex("https://standardebooks.org/ebooks/(?<author>[-a-z0-9]+)/(?<book>[-a-z0-9]+)", System.Text.RegularExpressions.RegexOptions.ExplicitCapture, 1000)]
[System.Text.RegularExpressions.GeneratedRegex("/ebooks/(?<author>[-a-z0-9]+)/(?<book>[-a-z0-9]+)", System.Text.RegularExpressions.RegexOptions.ExplicitCapture, 1000)]
private static partial System.Text.RegularExpressions.Regex BookRegex();

[System.Text.RegularExpressions.GeneratedRegex("https://standardebooks.org/ebooks/(?<author>[-a-z0-9]+)", System.Text.RegularExpressions.RegexOptions.ExplicitCapture, 1000)]
[System.Text.RegularExpressions.GeneratedRegex("/ebooks/(?<author>[-a-z0-9]+)", System.Text.RegularExpressions.RegexOptions.ExplicitCapture, 1000)]
private static partial System.Text.RegularExpressions.Regex AuthorRegex();

[System.Text.RegularExpressions.GeneratedRegex("https://standardebooks.org/collections/(?<collection>[-a-z0-9]+)", System.Text.RegularExpressions.RegexOptions.ExplicitCapture, 1000)]
[System.Text.RegularExpressions.GeneratedRegex("/collections/(?<collection>[-a-z0-9]+)", System.Text.RegularExpressions.RegexOptions.ExplicitCapture, 1000)]
private static partial System.Text.RegularExpressions.Regex CollectionsRegex();
}

0 comments on commit e149e12

Please sign in to comment.