mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r25952) -Fix [FS#5719]: do not skip numbers when skipping spaces and other sorting 'improving' characters
This commit is contained in:
parent
a41b8c851d
commit
cdd6752ead
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue