aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-08-02 14:25:52 +0300
committerJesús <heckyel@hyperbola.info>2020-08-07 12:47:23 -0500
commit9b080e31689d973f51d82a3cf8e2b0c461798b65 (patch)
treec814c2a3264ff0257242fecd6eff540c05d5c898
parentad3d9dec0bbbac9fe6b4e7894272de341041b44c (diff)
downloadfair-viewer-9b080e31689d973f51d82a3cf8e2b0c461798b65.tar.lz
fair-viewer-9b080e31689d973f51d82a3cf8e2b0c461798b65.tar.xz
fair-viewer-9b080e31689d973f51d82a3cf8e2b0c461798b65.zip
Minor code simplification in Utils.pm
Signed-off-by: Jesús <heckyel@hyperbola.info>
-rw-r--r--lib/WWW/FairViewer/Utils.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/WWW/FairViewer/Utils.pm b/lib/WWW/FairViewer/Utils.pm
index 9f4afbc..f0a46a0 100644
--- a/lib/WWW/FairViewer/Utils.pm
+++ b/lib/WWW/FairViewer/Utils.pm
@@ -475,9 +475,7 @@ sub get_description {
}segi;
# Decode hashtags
- $desc =~ s{<a href="/results\?search_query=.*?".*?>(.*?)</a>}{
- $1
- }segi;
+ $desc =~ s{<a href="/results\?search_query=.*?".*?>(.*?)</a>}{$1}sgi;
# Decode internal links to videos / playlists
$desc =~ s{<a href="/(watch\?.*?)".*?>(https://www\.youtube\.com)/watch\?.*?</a>}{