Comparing 1.7.2...1.7.3 · rust-lang/regex · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/regex
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.7.2
Choose a base ref
...
head repository: rust-lang/regex
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.7.3
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Mar 25, 2023

  1. dfa: fix bug in how the reverse DFA is called

    In turns out that in *some* calls to Fsm::reverse, we were passing an
    incorrect start offset. Namely, the haystack we pass is sub-sliced at
    `&text[start..]`, but in some places, we were passing `text.len()` as
    the start offset of the reverse search. But of course, it should be
    `text.len() - start`. This was indeed the case in most places, but it
    looks like it needed to be corrected in two additional places.
    
    I've also added this test to regex-automata's set of regression tests
    and can confirm that it doesn't happen there. (regex-automata is far
    more principled about handling offsets like this.)
    
    Fixes #969
    BurntSushi committed Mar 25, 2023
    Configuration menu
    Copy the full SHA
    d94f955 View commit details
    Browse the repository at this point in the history
  2. changelog: 1.7.3

    BurntSushi committed Mar 25, 2023
    Configuration menu
    Copy the full SHA
    9562ccd View commit details
    Browse the repository at this point in the history
  3. 1.7.3

    BurntSushi committed Mar 25, 2023
    Configuration menu
    Copy the full SHA
    9582040 View commit details
    Browse the repository at this point in the history
Loading