mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 09:04:59 +08:00
Update milli/src/search/matches/mod.rs
This commit is contained in:
parent
8ddb4e750b
commit
2d79720f5d
@ -428,7 +428,7 @@ impl<'t, A: AsRef<[u8]>> Matcher<'t, '_, A> {
|
|||||||
_ => matches,
|
_ => matches,
|
||||||
};
|
};
|
||||||
|
|
||||||
// If the text have to be croped,
|
// If the text has to be cropped,
|
||||||
// crop around the best interval.
|
// crop around the best interval.
|
||||||
let (byte_start, byte_end) = match format_options.crop {
|
let (byte_start, byte_end) = match format_options.crop {
|
||||||
Some(crop_size) if crop_size > 0 => {
|
Some(crop_size) if crop_size > 0 => {
|
||||||
|
Loading…
Reference in New Issue
Block a user