Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit c25dd65

Browse files
Parsing the issue search query to allow just numbers
1 parent 90f30c6 commit c25dd65

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/GitHub.App/ViewModels/GitHubPane/IssueListViewModelBase.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,7 @@ void FilterChanged()
246246
{
247247
numberFilter = 0;
248248

249-
if (SearchQuery.StartsWith('#'))
250-
{
251-
int.TryParse(SearchQuery.Substring(1), out numberFilter);
252-
}
249+
int.TryParse(SearchQuery.Substring(SearchQuery.StartsWith('#') ? 1 : 0), out numberFilter);
253250

254251
if (numberFilter == 0)
255252
{

0 commit comments

Comments
 (0)