Skip to content

Commit

Permalink
released 5.1.1
Browse files Browse the repository at this point in the history
fix a problem with POSIX lazy quantifier matching when combined with anchors, causing longer pattern matches than expected
  • Loading branch information
genivia-inc committed Mar 11, 2024
1 parent 0462304 commit 912daec
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
Binary file modified bin/win32/ug.exe
Binary file not shown.
Binary file modified bin/win32/ugrep.exe
Binary file not shown.
Binary file modified bin/win64/ug.exe
Binary file not shown.
Binary file modified bin/win64/ugrep.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3467,7 +3467,7 @@ void Pattern::graph_dfa(const DFA::State *start) const
if (state != start && !state->accept && state->heads.empty() && state->tails.empty())
::fprintf(file, "\n/*STATE*/\t");
::fprintf(file, "N%p [label=\"", (void*)state);
#if 1 // def DEBUG FIXME
#ifdef DEBUG
size_t k = 1;
size_t n = std::sqrt(state->size()) + 0.5;
const char *sep = "";
Expand Down

0 comments on commit 912daec

Please sign in to comment.