mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Highlight numbers (int) as string in formatted JSON
This commit is contained in:
parent
602a327aa8
commit
5b4e4bb858
1 changed files with 4 additions and 0 deletions
|
@ -555,6 +555,10 @@ impl<'a, A: AsRef<[u8]>> Formatter<'a, A> {
|
|||
})
|
||||
.collect(),
|
||||
),
|
||||
Value::Number(number) => {
|
||||
let number_string_value = self.format_string(number.to_string(), matcher, format_options);
|
||||
Value::String(number_string_value)
|
||||
}
|
||||
value => value,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue