Skip to content

Commit

Permalink
(LIB) bump regex 1.10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 committed Jun 9, 2024
1 parent 3c5b0de commit 248718f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ once_cell = "1.19.0"
phf = { version = "0.11", features = ["macros"] }
rand = "0.8.5"
rangemap = "1.5.1"
regex = "1.10.4"
regex = "1.10.5"
si_trace_print = "0.3.12"
stringzilla = "3.8.4"
tar = "0.4.40"
Expand Down
12 changes: 6 additions & 6 deletions src/data/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,21 @@ pub type DateTimePattern_string = String;

/// Regular expression formatting pattern, passed to [`regex::bytes::Regex`].
///
/// [`regex::bytes::Regex`]: https://docs.rs/regex/1.6.0/regex/bytes/struct.Regex.html
/// [`regex::bytes::Regex`]: https://docs.rs/regex/1.10.5/regex/bytes/struct.Regex.html
pub type DateTimeRegex_str = str;

/// Regular expression capture group name, used within the regular expression and
/// for later retrieval via [`regex::captures.name`].
///
/// [`regex::captures.name`]: https://docs.rs/regex/1.6.0/regex/bytes/struct.Captures.html#method.name
/// [`regex::captures.name`]: https://docs.rs/regex/1.10.5/regex/bytes/struct.Captures.html#method.name
pub type CaptureGroupName = str;

/// Regular expression capture group pattern, used within a [`RegexPattern`].
pub type CaptureGroupPattern = str;

/// A regular expression, passed to [`regex::bytes::Regex::captures`].
///
/// [`regex::bytes::Regex::captures`]: https://docs.rs/regex/1.6.0/regex/bytes/struct.Regex.html#method.captures
/// [`regex::bytes::Regex::captures`]: https://docs.rs/regex/1.10.5/regex/bytes/struct.Regex.html#method.captures
pub type RegexPattern = str;

/// The regular expression "class" used here, specifically for matching datetime substrings
Expand Down Expand Up @@ -991,7 +991,7 @@ impl fmt::Debug for DTFSSet<'_> {
pub struct DateTimeParseInstr<'a> {
/// Regex pattern for [`captures`].
///
/// [`captures`]: https://docs.rs/regex/1.6.0/regex/bytes/struct.Regex.html#method.captures
/// [`captures`]: https://docs.rs/regex/1.10.5/regex/bytes/struct.Regex.html#method.captures
pub regex_pattern: &'a DateTimeRegex_str,
/// In what `strftime` form are the regex `regex_pattern` capture groups?
pub dtfs: DTFSSet<'a>,
Expand All @@ -1007,7 +1007,7 @@ pub struct DateTimeParseInstr<'a> {
/// performance.
///
/// [`Line`]: crate::data::line::Line
/// [`Regex`]: https://docs.rs/regex/1.6.0/regex/bytes/struct.Regex.html#method.captures
/// [`Regex`]: https://docs.rs/regex/1.10.5/regex/bytes/struct.Regex.html#method.captures
pub range_regex: RangeLineIndex,
/// Capture named group first (left-most) position in `regex_pattern`.
pub cgn_first: &'a CaptureGroupName,
Expand Down Expand Up @@ -5134,7 +5134,7 @@ lazy_static! {
/// `DATETIME_PARSE_DATAS` array but `DATETIME_PARSE_DATAS_REGEX_VEC`
/// maps to the compiled `Regex`.
///
/// [`Regex`]: https://docs.rs/regex/1.6.0/regex/bytes/struct.Regex.html
/// [`Regex`]: https://docs.rs/regex/1.10.5/regex/bytes/struct.Regex.html
// TODO: cost-savings: each compiled regex requires ≈133,000 Bytes on the heap according
// to `./tools/valgrind-massif.sh`. This is a lot of memory.
// An easy way to reduce baseline heap-use is drop the unused ones.
Expand Down

0 comments on commit 248718f

Please sign in to comment.