extension NSRegularExpression: ConfigurationPatternConvertible
Support for passing regular expressions to
Matches URLs if this regular expression matches any substring of the URL’s full, absolute form.
Note that, unlike the simpler wildcard form of
String.configurationPattern(for:), the regular expression is not matched relative to the Service’s base URL. The match is performed against the full URL: scheme, host, path, query string and all.
Note also that this implementation matches substrings. Include
$if you want your pattern to match against the entire URL.
public func configurationPattern(for service: Service) -> (URL) -> Bool