mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 13:10:06 +01:00
Highlight numbers (int) as string in formatted JSON
This commit is contained in:
parent
602a327aa8
commit
5b4e4bb858
@ -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…
x
Reference in New Issue
Block a user