From cdd6752ead27d492f831310fee815753093f4f78 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 8 Nov 2013 21:15:20 +0000 Subject: [PATCH] (svn r25952) -Fix [FS#5719]: do not skip numbers when skipping spaces and other sorting 'improving' characters --- src/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.cpp b/src/string.cpp index ada9f9022a..301f150f89 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -608,7 +608,7 @@ char *strcasestr(const char *haystack, const char *needle) */ static const char *SkipGarbage(const char *str) { - while (*str != '\0' && (*str < 'A' || IsInsideMM(*str, '[', '`' + 1) || IsInsideMM(*str, '{', '~' + 1))) str++; + while (*str != '\0' && (*str < '0' || IsInsideMM(*str, ';', '@' + 1) || IsInsideMM(*str, '[', '`' + 1) || IsInsideMM(*str, '{', '~' + 1))) str++; return str; }