This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // AwaitableTests.swift | |
| // AwaitableTests | |
| // | |
| // Created by Peter on 11/17/17. | |
| // Copyright © 2017 Peter. All rights reserved. | |
| // | |
| import XCTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "NSString+EmailAddressMethods.h" | |
| @implementation NSString (EmailAddressMethods) | |
| - (NSArray<NSString *> * _Nonnull)containedEmailAddresses { | |
| return [self containedEmailAddressesUpTo:NSUIntegerMax]; | |
| } | |
| - (NSArray<NSString *> * _Nonnull)containedEmailAddressesUpTo:(NSUInteger)takeCount { | |
| NSDataDetector *detector = [NSDataDetector dataDetectorWithTypes:NSTextCheckingTypeLink error:nil]; |