aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/url.rs
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-03-18 18:55:45 +0100
committerJokler <jokler.contact@gmail.com>2018-03-18 18:55:45 +0100
commit47627f9219c75290125f980761b4ec9b5f6fe1f4 (patch)
tree2c3a82c65254cc97528ed9049f1103ddb1b91d96 /src/plugins/url.rs
parente510da21a359ffa96843da53c464bce3ad1f7810 (diff)
downloadfrippy-47627f9219c75290125f980761b4ec9b5f6fe1f4.tar.gz
frippy-47627f9219c75290125f980761b4ec9b5f6fe1f4.zip
Trim titles in the url plugin
Diffstat (limited to 'src/plugins/url.rs')
-rw-r--r--src/plugins/url.rs2
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', "|"))
}
}