From 95f15a85e9d9e11f0ee259da1e3aba885d32e842 Mon Sep 17 00:00:00 2001 From: Malma Date: Sat, 1 Oct 2016 00:30:11 +0400 Subject: [PATCH] fix bracket pattern matching Threre is the bug while iterating combinations in a set: gsub("replace all spaces. and. dots.", "[%s%.]", "") gsub remove only the first combination(%s). %. and and all of the following combinations are ignored. --- src/matchengine.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/matchengine.c b/src/matchengine.c index dc4c94e..0a23252 100644 --- a/src/matchengine.c +++ b/src/matchengine.c @@ -212,6 +212,7 @@ static int matchbracketclass(UChar32 sc, UCharIterator* pPattIter, uint32_t endc return sig; } uiter_next32(pPattIter); + break; case ']': status = U_ZERO_ERROR; uiter_setState(pPattIter, restore_state, &status);