mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
parent
0fefcf9917
commit
91ff936cb3
4 changed files with 48 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue