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:
@@ -1288,6 +1288,11 @@ _EXPORT void SubjectToThread (BString &string)
|
|||||||
|
|
||||||
string.Remove(start,regs.end[0]-start);
|
string.Remove(start,regs.end[0]-start);
|
||||||
if (start) string.Insert(' ',1,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);
|
free(regs.start);
|
||||||
|
|||||||
Reference in New Issue
Block a user