diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-06-08 16:34:55 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-06-08 16:34:55 -0500 |
| commit | eecf76c1fba93fe781a8f8b0871fe3dae0ac1883 (patch) | |
| tree | 3c8e501069054e80500ddc562884ba9e277d67e9 /src | |
| parent | d1635cf24ecac1277aa6b517d124fb22a10621b0 (diff) | |
| download | invidious-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.cr | 8 |
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/>" => " ", - "\"" => """, - "\n" => " ", + "<br>": " ", + "<br/>": " ", + "\"": """, + "\n": " ", }) short_description = XML.parse_html(short_description).content[0..200].strip(" ") |
