Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Added whitespace trim to filter string (mac)
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrekV committed Mar 20, 2018
1 parent 584a757 commit e1d1a54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/osx/TogglDesktop/test2/LiteAutoCompleteDataSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@ - (void)setFilter:(NSString *)filter
}
return;
}

[self findFilter:filter];
NSString *trimmedFilter = [filter stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceAndNewlineCharacterSet]];
[self findFilter:trimmedFilter];
}
}

Expand Down

0 comments on commit e1d1a54

Please sign in to comment.