Move redirect rule to 2 row, remove no-wrap (#55)

- Fix redirect rule handling with endpoint routing (#59)
- Make subtitle non-nullable string (#47)
This commit is contained in:
2026-07-18 12:50:27 -04:00
parent 816a156d79
commit 3a19952f39
6 changed files with 14 additions and 17 deletions
+2 -3
View File
@@ -101,10 +101,9 @@ module WebLogCache =
let relUrl = Permalink >> webLog.RelativeUrl
let urlTo = if it.To.Contains "://" then it.To else relUrl it.To
if it.IsRegex then
let pattern = if it.From.StartsWith "^" then $"^{relUrl it.From[1..]}" else it.From
RegEx(Regex(pattern, RegexOptions.Compiled ||| RegexOptions.IgnoreCase), urlTo)
RegEx(Regex(it.From, RegexOptions.Compiled ||| RegexOptions.IgnoreCase), urlTo)
else
Text(relUrl it.From, urlTo))
Text(it.From, urlTo))
/// <summary>Get all cached web logs</summary>
/// <returns>All cached web logs</returns>