mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Fix the current tests
This commit is contained in:
parent
a36b1dbd70
commit
7b4b57ecc8
3 changed files with 5 additions and 5 deletions
|
@ -69,6 +69,7 @@ impl TryFrom<String> for IndexUidPattern {
|
|||
|
||||
fn try_from(uid: String) -> Result<Self, Self::Error> {
|
||||
let result = match uid.strip_suffix('*') {
|
||||
Some("") => Ok(IndexUidPattern(uid)),
|
||||
Some(prefix) => IndexUid::from_str(prefix).map(|_| IndexUidPattern(uid)),
|
||||
None => IndexUid::try_from(uid).map(IndexUid::into_inner).map(IndexUidPattern),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue