public PathFilter([CanBeNull] string text, bool allowEmptyString) { if (allowEmptyString && text == string.Empty) { Text = string.Empty; sequence = PathPattern.ParsePattern("*"); } else { Text = string.IsNullOrEmpty(text) ? "*.*" : text; sequence = PathPattern.ParsePattern(Text == "*.*" ? "*" : Text); } }