diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-10 01:59:46 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-10 01:59:46 -0800 |
commit | abd93900dbbaaef2e43d2e2d44991b5a143393c1 (patch) | |
tree | 08ca24a8aaa16f139feeb4ec640fdfb673c45f3c /MobileCydia.mm | |
parent | 8c9453daccf787e1bb9cf15dd7df38864e66a568 (diff) |
Truncate descriptions to 200, not 100, characters.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 6 |
1 files 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<const char *>(memchr(start, '\n', end - start))) @@ -2866,7 +2866,7 @@ struct PackageNameOrdering : string = [self shortDescription]; length = [string length]; - NSUInteger stop(std::min<NSUInteger>(length, 100)); + NSUInteger stop(std::min<NSUInteger>(length, 200)); for (NSString *term in query) { range = [string rangeOfString:term options:MatchCompareOptions_ range:NSMakeRange(0, stop)]; |