Exemplo n.º 1
0
        public MatchInspection Operate(Match match)
        {
            var matchingStr     = match.Value; // Has been: match.Value.ToLower();
            var matchInspection = MatchInspection.CreateEmpty(match, MatchInspectionType.Error);

            if (StrHelper.IsEncapsulatedBy(matchingStr, JsMrgRunner.CommandPrefix, JsMrgRunner.CommandSuffix,
                                           out var nonEncapsulatedStr))
            {
                matchInspection.Command       = AnalyseMatch(nonEncapsulatedStr, out var possibleCommandParam);
                matchInspection.CommandParams = possibleCommandParam;

                return(matchInspection);
            }

            return(matchInspection);
        }