mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-14 15:47:12 +00:00
Don't replace :
for @crate query searching
Since rustdoc support `fn:`, `trait:` special searching
This commit is contained in:
parent
4ccbf8d99a
commit
43c4e37167
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ export default class CrateDocSearch {
|
||||||
|
|
||||||
static parseCrateDocsSearchKeyword(query) {
|
static parseCrateDocsSearchKeyword(query) {
|
||||||
query = query.replaceAll("@", "").trim();
|
query = query.replaceAll("@", "").trim();
|
||||||
let [crateName, ...keyword] = query.split(/\s|:+/i);
|
let [crateName, ...keyword] = query.split(/\s/i);
|
||||||
return [crateName, keyword.filter(k => k).join('::')];
|
return [crateName, keyword.filter(k => k).join('')];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue