Trim spaces when using cmd+u sheet (#2915)

This commit is contained in:
Antoine Cœur 2022-04-16 12:02:25 +08:00 committed by GitHub
parent f4bb09428b
commit bafb8d6495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1544,6 +1544,7 @@ static void removeKeRangerRansomware()
if (returnCode == 1)
{
NSString* urlString = [self.fUrlSheetController urlString];
urlString = [urlString stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceAndNewlineCharacterSet];
dispatch_async(dispatch_get_main_queue(), ^{
[self openURL:urlString];
});