objectionary / sodg

Rust implementation of Surging Object DiGraph (SODG)
https://crates.io/crates/sodg
MIT License
9 stars 3 forks source link

Update Rust crate regex to 1.8.4 #139

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
regex dependencies patch 1.8.3 -> 1.8.4

Release Notes

rust-lang/regex ### [`v1.8.4`](https://togithub.com/rust-lang/regex/blob/HEAD/CHANGELOG.md#​184-2023-06-05) [Compare Source](https://togithub.com/rust-lang/regex/compare/1.8.3...1.8.4) \================== This is a patch release that fixes a bug where `(?-u:\B)` was allowed in Unicode regexes, despite the fact that the current matching engines can report match offsets between the code units of a single UTF-8 encoded codepoint. That in turn means that match offsets that split a codepoint could be reported, which in turn results in panicking when one uses them to slice a `&str`. This bug occurred in the transition to `regex 1.8` because the underlying syntactical error that prevented this regex from compiling was intentionally removed. That's because `(?-u:\B)` will be permitted in Unicode regexes in `regex 1.9`, but the matching engines will guarantee to never report match offsets that split a codepoint. When the underlying syntactical error was removed, no code was added to ensure that `(?-u:\B)` didn't compile in the `regex 1.8` transition release. This release, `regex 1.8.4`, adds that code such that `Regex::new(r"(?-u:\B)")` returns to the `regex <1.8` behavior of not compiling. (A `bytes::Regex` can still of course compile it.) Bug fixes: - [BUG #​1006](https://togithub.com/rust-lang/regex/issues/1006): Fix a bug where `(?-u:\B)` was allowed in Unicode regexes, and in turn could lead to match offsets that split a codepoint in `&str`.

Configuration

πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.


PR-Codex overview

This PR updates the regex dependency to version 1.8.4.

Detailed summary

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

codecov[bot] commented 1 year ago

Codecov Report

Merging #139 (82437dc) into master (aa9d7e7) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #139   +/-   ##
=======================================
  Coverage   70.13%   70.13%           
=======================================
  Files          16       16           
  Lines         596      596           
=======================================
  Hits          418      418           
  Misses        178      178           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

yegor256 commented 1 year ago

@rultor please, try to merge, since 8 checks have passed

rultor commented 1 year ago

@rultor please, try to merge, since 8 checks have passed

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

rultor commented 1 year ago

@rultor please, try to merge, since 8 checks have passed

@yegor256 Done! FYI, the full log is here (took me 4min)