mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
combine condition
This commit is contained in:
parent
19918244ad
commit
838d0ec583
1 changed files with 2 additions and 4 deletions
|
|
@ -217,10 +217,8 @@ namespace Flow.Launcher.Infrastructure
|
|||
{
|
||||
if (char.IsUpper(stringToCompare[compareStringIndex]) ||
|
||||
char.IsNumber(stringToCompare[compareStringIndex]) ||
|
||||
char.IsDigit(stringToCompare[compareStringIndex]))
|
||||
return true;
|
||||
|
||||
if (compareStringIndex == 0)
|
||||
char.IsDigit(stringToCompare[compareStringIndex]) ||
|
||||
compareStringIndex == 0) //0 index means char is the start of the compare string, which is an acronym
|
||||
return true;
|
||||
|
||||
if (compareStringIndex != 0 && char.IsWhiteSpace(stringToCompare[compareStringIndex - 1]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue