Binboo.Core.Commands.Arguments.ParamValidator.IsMatch C# (CSharp) Method

IsMatch() public method

public IsMatch ( string candidate ) : bool
candidate string
return bool
        public virtual bool IsMatch(string candidate)
        {
            var match = Regex.Match(candidate, _regex);
            return match.Success && match.Value.Trim().Length == candidate.Trim().Length;
        }