Example #1
0
        private string FixCondition(string line)
        {
            Logger.Log(LogType.Log, $"Fixing expression: {line}", PLUGIN_MIN_SEVERITY + 7);


            string r = line;

            r = SurroundWithSpaces(r, OrOperator);
            r = SurroundWithSpaces(r, AndOperator);
            r = SurroundWithSpaces(r, "(");
            r = SurroundWithSpaces(r, ")");
            string rr = Utils.RemoveExcessSpaces(r, Separator);

            Logger.Log(LogType.Log, $"Fixed condition(new): {rr}", PLUGIN_MIN_SEVERITY + 7);
            return(rr);
        }
Example #2
0
        private string FixCondition(string line)
        {
            Logger.Log(PPLogType.Log, Verbosity.Level6, "Fixing expression: {0}", line);


            string r = line;

            r = SurroundWithSpaces(r, OrOperator);
            r = SurroundWithSpaces(r, AndOperator);
            r = SurroundWithSpaces(r, "(");
            r = SurroundWithSpaces(r, ")");
            string rr = Utils.RemoveExcessSpaces(r, Separator);

            Logger.Log(PPLogType.Log, Verbosity.Level6, "Fixed condition(new): {0}", rr);
            return(rr);
        }