mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use upstream bug fix for regex engine
This commit is contained in:
parent
c1920935d5
commit
402bd2bb77
@ -225,7 +225,7 @@ __all__ = ["compile", "escape", "findall", "finditer", "fullmatch", "match",
|
|||||||
"V0", "VERSION0", "V1", "VERSION1", "X", "VERBOSE", "W", "WORD", "error",
|
"V0", "VERSION0", "V1", "VERSION1", "X", "VERBOSE", "W", "WORD", "error",
|
||||||
"Regex"]
|
"Regex"]
|
||||||
|
|
||||||
__version__ = "2.4.36"
|
__version__ = "2.4.37"
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# Public interface.
|
# Public interface.
|
||||||
|
@ -13232,7 +13232,6 @@ Py_LOCAL_INLINE(BOOL) state_init_2(RE_State* state, PatternObject* pattern,
|
|||||||
|
|
||||||
state->groups = NULL;
|
state->groups = NULL;
|
||||||
state->repeats = NULL;
|
state->repeats = NULL;
|
||||||
state->req_pos = -1;
|
|
||||||
state->visible_captures = visible_captures;
|
state->visible_captures = visible_captures;
|
||||||
state->match_all = match_all;
|
state->match_all = match_all;
|
||||||
state->backtrack_block.previous = NULL;
|
state->backtrack_block.previous = NULL;
|
||||||
@ -13248,6 +13247,7 @@ Py_LOCAL_INLINE(BOOL) state_init_2(RE_State* state, PatternObject* pattern,
|
|||||||
state->first_group_call_frame = NULL;
|
state->first_group_call_frame = NULL;
|
||||||
state->current_group_call_frame = NULL;
|
state->current_group_call_frame = NULL;
|
||||||
state->group_call_guard_list = NULL;
|
state->group_call_guard_list = NULL;
|
||||||
|
state->req_pos = -1;
|
||||||
|
|
||||||
/* The call guards used by recursive patterns. */
|
/* The call guards used by recursive patterns. */
|
||||||
if (pattern->call_ref_info_count > 0) {
|
if (pattern->call_ref_info_count > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user