mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 09:56:28 +00:00 
			
		
		
		
	Highlight numbers (int) as string in formatted JSON
This commit is contained in:
		@@ -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,
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user