From abd93900dbbaaef2e43d2e2d44991b5a143393c1 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 10 Mar 2011 01:59:46 -0800 Subject: Truncate descriptions to 200, not 100, characters. --- MobileCydia.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 86b2e8d..3e50dcc 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -2454,8 +2454,8 @@ struct PackageNameOrdering : if (!parser.ShortDesc(start, end)) return nil; - if (end - start > 100) - end = start + 100; + if (end - start > 200) + end = start + 200; /* if (const char *stop = reinterpret_cast(memchr(start, '\n', end - start))) @@ -2866,7 +2866,7 @@ struct PackageNameOrdering : string = [self shortDescription]; length = [string length]; - NSUInteger stop(std::min(length, 100)); + NSUInteger stop(std::min(length, 200)); for (NSString *term in query) { range = [string rangeOfString:term options:MatchCompareOptions_ range:NSMakeRange(0, stop)]; -- cgit v1.2.3