Skip to content

Commit a3630e4

Browse files
committed
Trim leading whitespace
1 parent 807ff70 commit a3630e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher.Core/Plugin/QueryBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ public static Query Build(string text, Dictionary<string, PluginPair> nonGlobalP
2424
if (nonGlobalPlugins.TryGetValue(possibleActionKeyword, out var pluginPair) && !pluginPair.Metadata.Disabled)
2525
{ // use non global plugin for query
2626
actionKeyword = possibleActionKeyword;
27-
search = terms.Length > 1 ? rawQuery[(actionKeyword.Length + 1)..] : string.Empty;
27+
search = terms.Length > 1 ? rawQuery[(actionKeyword.Length + 1)..].TrimStart() : string.Empty;
2828
searchTerms = terms[1..];
2929
}
3030
else
3131
{ // non action keyword
3232
actionKeyword = string.Empty;
33-
search = rawQuery;
33+
search = rawQuery.TrimStart();
3434
searchTerms = terms;
3535
}
3636

0 commit comments

Comments
 (0)