text: public static RevFilter Create(string pattern){if (pattern.Length == 0){throw new ArgumentException(JGitText.Get().cannotMatchOnEmptyString);}if (SubStringRevFilter.Safe(pattern)){return new AuthorRevFilter.SubStringSearch(pattern);}return new AuthorRevFilter.PatternSearch(pattern);}