From df54de37b0a372a49bed0130406a5b75b85cd119 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Tue, 21 Nov 2023 11:29:30 +1100 Subject: Bug [#2413]. Fix regular expression search failure. --- src/RESearch.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/RESearch.h') diff --git a/src/RESearch.h b/src/RESearch.h index 05bc0e093..5ac3f00dc 100644 --- a/src/RESearch.h +++ b/src/RESearch.h @@ -22,7 +22,7 @@ public: explicit RESearch(CharClassify *charClassTable); // No dynamic allocation so default copy constructor and assignment operator are OK. void Clear(); - const char *Compile(const char *pattern, Sci::Position length, bool caseSensitive, bool posix) noexcept; + const char *Compile(const char *pattern, Sci::Position length, bool caseSensitive, bool posix); int Execute(const CharacterIndexer &ci, Sci::Position lp, Sci::Position endp); static constexpr int MAXTAG = 10; @@ -48,7 +48,6 @@ private: Sci::Position PMatch(const CharacterIndexer &ci, Sci::Position lp, Sci::Position endp, const char *ap); Sci::Position bol; - Sci::Position tagstk[MAXTAG]; /* subpat tag stack */ char nfa[MAXNFA]; /* automaton */ int sta; unsigned char bittab[BITBLK]; /* bit table for CCL pre-set bits */ -- cgit v1.2.3