rustdoc-search: case-sensitive only when capitals are used
This is the "smartcase" behavior, described by vim and dtolnay.
This commit is contained in:
parent
a4cedecc9e
commit
32500aa8e0
4 changed files with 55 additions and 4 deletions
24
tests/rustdoc-js-std/write.js
Normal file
24
tests/rustdoc-js-std/write.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
const EXPECTED = [
|
||||
{
|
||||
'query': 'write',
|
||||
'others': [
|
||||
{ 'path': 'std::fmt', 'name': 'write' },
|
||||
{ 'path': 'std::fs', 'name': 'write' },
|
||||
{ 'path': 'std::ptr', 'name': 'write' },
|
||||
{ 'path': 'std::fmt', 'name': 'Write' },
|
||||
{ 'path': 'std::io', 'name': 'Write' },
|
||||
{ 'path': 'std::hash::Hasher', 'name': 'write' },
|
||||
],
|
||||
},
|
||||
{
|
||||
'query': 'Write',
|
||||
'others': [
|
||||
{ 'path': 'std::fmt', 'name': 'Write' },
|
||||
{ 'path': 'std::io', 'name': 'Write' },
|
||||
{ 'path': 'std::fmt', 'name': 'write' },
|
||||
{ 'path': 'std::fs', 'name': 'write' },
|
||||
{ 'path': 'std::ptr', 'name': 'write' },
|
||||
{ 'path': 'std::hash::Hasher', 'name': 'write' },
|
||||
],
|
||||
},
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue