mail: Remove regex match limitation from the BeOS days.
It was still enabled on 32-bit x86...
This commit is contained in:
@@ -103,16 +103,6 @@ bool StringMatcher::SetPattern(const char * str, bool isSimple)
|
|||||||
bool
|
bool
|
||||||
StringMatcher::Match(const char *str) const
|
StringMatcher::Match(const char *str) const
|
||||||
{
|
{
|
||||||
#ifdef __INTEL__
|
|
||||||
char buffer[1024];
|
|
||||||
if (strlen(str) > 1024) {
|
|
||||||
// internal Be regex seems to be broken with strings larger than a certain size :-/
|
|
||||||
memcpy(buffer, str, 1023);
|
|
||||||
buffer[1023] = '\0';
|
|
||||||
str = buffer;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (_regExpValid == false)
|
if (_regExpValid == false)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user