Bugfixes + Potential iOS Webtoon Reader Fix (#2650)

This commit is contained in:
Joe Milazzo 2024-01-25 11:09:44 -06:00 committed by GitHub
parent 56fa393cf0
commit f660a1cd06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 157 additions and 197 deletions

View file

@ -12,8 +12,14 @@ public static class CronConverter
"daily",
"weekly",
};
public static string ConvertToCronNotation(string source)
/// <summary>
/// Converts to Cron Notation
/// </summary>
/// <param name="source">Defaults to daily</param>
/// <returns></returns>
public static string ConvertToCronNotation(string? source)
{
if (string.IsNullOrEmpty(source)) return Cron.Daily();
return source.ToLower() switch
{
"daily" => Cron.Daily(),