Skip to content

Commit

Permalink
Update src/core/json_utils.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Masurel <[email protected]>
  • Loading branch information
PSeitz and fulmicoton authored Nov 8, 2023
1 parent ce04b98 commit 0fcdbe4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/json_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ fn index_json_value<'a, V: Value<'a>>(
}

/// Tries to infer a JSON type from a string and append it to the term.
///
/// Disclaimer
/// The term is expected to not contain the type byte nor the value.
pub(crate) fn convert_to_fast_value_and_append(term: &Term, phrase: &str) -> Option<Term> {
let mut term = term.clone();
if let Ok(dt) = OffsetDateTime::parse(phrase, &Rfc3339) {
Expand Down

0 comments on commit 0fcdbe4

Please sign in to comment.