Workaround for #7575. There seems to be something fishy in the regex. Could somebody with experience in re_search check what
the real problem is? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41826 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
389f3fe159
commit
4b4ae23e28
@ -1288,6 +1288,11 @@ _EXPORT void SubjectToThread (BString &string)
|
||||
|
||||
string.Remove(start,regs.end[0]-start);
|
||||
if (start) string.Insert(' ',1,start);
|
||||
|
||||
// TODO: for some subjects this results in an endless loop, check
|
||||
// why this happen.
|
||||
if (regs.end[0] - start <= 1)
|
||||
break;
|
||||
}
|
||||
|
||||
free(regs.start);
|
||||
|
Loading…
x
Reference in New Issue
Block a user