Forbid rustdoc search query to end with ->
This commit is contained in:
@@ -21,6 +21,7 @@ const QUERY = [
|
||||
"a-bb",
|
||||
"a>bb",
|
||||
"ab'",
|
||||
"a->",
|
||||
];
|
||||
|
||||
const PARSED = [
|
||||
@@ -222,4 +223,13 @@ const PARSED = [
|
||||
userQuery: "ab'",
|
||||
error: "Unexpected `'`",
|
||||
},
|
||||
{
|
||||
elems: [],
|
||||
foundElems: 0,
|
||||
original: "a->",
|
||||
returned: [],
|
||||
typeFilter: -1,
|
||||
userQuery: "a->",
|
||||
error: "Expected at least one item after `->`",
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user