diff options
| author | Fuwn <[email protected]> | 2025-09-11 05:51:29 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-11 05:51:29 +0000 |
| commit | b45156082cfa08bf7e390d71c4a9c101eb460858 (patch) | |
| tree | 17b204a836cac6ac90c7604d0602253fc95e2f91 /src | |
| parent | chore: Bump version patch (diff) | |
| download | germ-b45156082cfa08bf7e390d71c4a9c101eb460858.tar.xz germ-b45156082cfa08bf7e390d71c4a9c101eb460858.zip | |
fix(ast): Gracefully handle malformed link lines
Diffstat (limited to 'src')
| -rw-r--r-- | src/ast/container.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/container.rs b/src/ast/container.rs index 0d20193..bf4166c 100644 --- a/src/ast/container.rs +++ b/src/ast/container.rs @@ -206,7 +206,7 @@ impl Ast { .into_iter(); nodes.push(Node::Link { - to: split.next().expect("no location in link"), + to: split.next().unwrap_or_default(), text: { let rest = split.collect::<Vec<String>>().join(" "); |