summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-06-08 16:34:55 -0500
committerOmar Roth <omarroth@protonmail.com>2019-06-08 16:34:55 -0500
commiteecf76c1fba93fe781a8f8b0871fe3dae0ac1883 (patch)
tree3c8e501069054e80500ddc562884ba9e277d67e9 /src
parentd1635cf24ecac1277aa6b517d124fb22a10621b0 (diff)
downloadinvidious-eecf76c1fba93fe781a8f8b0871fe3dae0ac1883.tar.gz
invidious-eecf76c1fba93fe781a8f8b0871fe3dae0ac1883.tar.bz2
invidious-eecf76c1fba93fe781a8f8b0871fe3dae0ac1883.zip
Fix typo in short_description
Diffstat (limited to 'src')
-rw-r--r--src/invidious/videos.cr8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index 7964aa40..f1b8e3f8 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -806,10 +806,10 @@ struct Video
def short_description
short_description = self.description_html.gsub(/(<br>)|(<br\/>|"|\n)/, {
- "<br>" => " ",
- "<br/>" => " ",
- "\"" => "&quot;",
- "\n" => " ",
+ "<br>": " ",
+ "<br/>": " ",
+ "\"": "&quot;",
+ "\n": " ",
})
short_description = XML.parse_html(short_description).content[0..200].strip(" ")