diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-03-18 18:55:45 +0100 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2018-03-18 18:55:45 +0100 |
| commit | 47627f9219c75290125f980761b4ec9b5f6fe1f4 (patch) | |
| tree | 2c3a82c65254cc97528ed9049f1103ddb1b91d96 /src | |
| parent | e510da21a359ffa96843da53c464bce3ad1f7810 (diff) | |
| download | frippy-47627f9219c75290125f980761b4ec9b5f6fe1f4.tar.gz frippy-47627f9219c75290125f980761b4ec9b5f6fe1f4.zip | |
Trim titles in the url plugin
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/url.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/url.rs b/src/plugins/url.rs index 41358e5..df3329a 100644 --- a/src/plugins/url.rs +++ b/src/plugins/url.rs @@ -62,7 +62,7 @@ impl Url { let title = self.get_title(&body)?; - Ok(title.replace('\n', "|").replace('\r', "|")) + Ok(title.trim().replace('\n', "|").replace('\r', "|")) } } |
