SshKnownHosts.patternMatches

private bool patternMatches(string pattern, string candidate) static @safe pure nothrow

Matches one non-hashed pattern against one candidate.

Parameters

patternPattern with * and ? wildcards, lowercased by the caller.
candidateCandidate string.

Returns

True when the pattern matches the whole candidate.