mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Rename replaceUrl to replaceUrls
This commit is contained in:
parent
0e01ecb001
commit
9e413e1f8c
7 changed files with 11 additions and 11 deletions
|
|
@ -47,8 +47,8 @@ proc shortLink*(text: string; length=28): string =
|
|||
if result.len > length:
|
||||
result = result[0 ..< length] & "…"
|
||||
|
||||
proc replaceUrl*(url: string; prefs: Prefs; absolute=""): string =
|
||||
result = url
|
||||
proc replaceUrls*(body: string; prefs: Prefs; absolute=""): string =
|
||||
result = body
|
||||
|
||||
if prefs.replaceYouTube.len > 0 and ytRegex in result:
|
||||
result = result.replace(ytRegex, prefs.replaceYouTube)
|
||||
|
|
|
|||
Loading…
Reference in a new issue