Skip to content

Commit af17695

Browse files
committed
Correctly handle links without whitespace, fix #53
1 parent 665f0c4 commit af17695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gemini/src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use once_cell::sync::Lazy;
22
use regex::Regex;
33
static R_GEMINI_LINK: Lazy<Regex> =
4-
Lazy::new(|| Regex::new(r"^=>\s+(?P<href>\S+)(\s+(?P<label>.+))?").unwrap());
4+
Lazy::new(|| Regex::new(r"^=>\s*(?P<href>\S+)(\s+(?P<label>.+))?").unwrap());
55

66
// See gemini://gemini.circumlunar.space/docs/cheatsheet.gmi
77

0 commit comments

Comments
 (0)