mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-22 22:05:42 +00:00
Revert "Use match instead of find, minor performance gain"
This reverts commit 759728e363
.
This commit is contained in:
parent
759728e363
commit
5e5e290acc
|
@ -56,7 +56,7 @@ proc replaceUrl*(url: string; prefs: Prefs; absolute=""): string =
|
|||
|
||||
proc getM3u8Url*(content: string): string =
|
||||
var m: RegexMatch
|
||||
if content.match(m3u8Regex, m):
|
||||
if content.find(m3u8Regex, m):
|
||||
result = content[m.group(0)[0]]
|
||||
|
||||
proc proxifyVideo*(manifest: string; proxy: bool): string =
|
||||
|
|
Loading…
Reference in a new issue