Cradiator.Model.BuildBuster.FindBreaker C# (CSharp) Method

FindBreaker() public method

public FindBreaker ( string currentMessage ) : string
currentMessage string
return string
        public string FindBreaker(string currentMessage)
        {
            if (currentMessage.IsEmpty())
                return string.Empty;

            var username = currentMessage;

            if (_fixerStrategy.IsMatch(currentMessage))
                username = _fixerStrategy.Extract(currentMessage);
            else if (_guiltStrategy.IsMatch(currentMessage))
                username = _guiltStrategy.Extract(currentMessage);

            return username;
        }