We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4fe44f commit 5710ffbCopy full SHA for 5710ffb
src/html/search.rs
@@ -34,7 +34,9 @@ fn doc_nodes_into_search_index_node(
34
super::util::all_deprecated(&doc_nodes.iter().collect::<Vec<_>>());
35
36
let mut location = doc_nodes[0].location.clone();
37
- let location_url = ModuleSpecifier::parse(&location.filename).unwrap();
+ let Ok(location_url) = ModuleSpecifier::parse(&location.filename) else {
38
+ return vec![];
39
+ };
40
location.filename = if let Some(short_path) = ctx
41
.doc_nodes
42
.keys()
0 commit comments