Add workaround for broken "until" search filter

Fixes #1372
This commit is contained in:
Zed 2026-03-14 04:04:18 +01:00
commit 91ff936cb3
4 changed files with 48 additions and 17 deletions

View file

@ -1,5 +1,5 @@
# SPDX-License-Identifier: AGPL-3.0-only
import strutils, strformat, uri, tables, base64
import sequtils, strutils, strformat, uri, tables, base64
import nimcrypto
var
@ -59,3 +59,8 @@ proc isTwitterUrl*(uri: Uri): bool =
proc isTwitterUrl*(url: string): bool =
isTwitterUrl(parseUri(url))
proc validateNumber*(value: string): string =
if value.anyIt(not it.isDigit):
return ""
return value