diff options
| author | Fuwn <[email protected]> | 2022-07-26 17:48:38 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-07-26 17:48:38 +0000 |
| commit | fa92fdfac1a40d2b72bd1eea59d27be216284904 (patch) | |
| tree | 81eeed0509d7c39e766a0107639fa5f0421e3e0a /src/input.rs | |
| parent | refactor: docs and format (diff) | |
| download | sydney-fa92fdfac1a40d2b72bd1eea59d27be216284904.tar.xz sydney-fa92fdfac1a40d2b72bd1eea59d27be216284904.zip | |
feat(src): prefix urls everywhere
Diffstat (limited to 'src/input.rs')
| -rw-r--r-- | src/input.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/input.rs b/src/input.rs index 1fac12a..252c114 100644 --- a/src/input.rs +++ b/src/input.rs @@ -173,11 +173,7 @@ fn handle_editing_input( Command::Quit => return true, Command::Open(to) => if let Some(to) = to { - match Url::parse(&if to.starts_with("gemini://") { - to - } else { - format!("gemini://{}", to) - }) { + match Url::parse(&crate::url::prefix_gemini(&to)) { Ok(url) => { app.set_url(url); app.make_request(); |