[rtl.strutils]: Infinite loop in FindMatchesBoyerMooreCaseSensitive and FindMatchesBoyerMooreCaseInSensitive.
For a pattern with length < 2
and matchAll
set to true, FindMatchesBoyerMooreCaseSensitive
gets stuck in an infinite loop.
FindMatchesBoyerMooreCaseSensitive('a x b x c', 'x', matches, {matchAll}true); // never returns
Also, when the pattern has a repetition, it also gets stuck:
FindMatchesBoyerMooreCaseSensitive('a xx b xx c', 'xx', matches, {matchAll}true); // never returns
FindMatchesBoyerMooreCaseSensitive('a xy b xy c', 'xy', matches, {matchAll}true); // ok
FindMatchesBoyerMooreCaseInSensitive
, seems to always get stuck when matchAll
is set to true.