package util;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by neiro on 22.05.17.
 */
public class CommandChecker {

    private static Map<String, ParseType> supportedCommandsMap;

    static {
        supportedCommandsMap = new HashMap<>();

        supportedCommandsMap.put("grep", ParseType.GREP);
        supportedCommandsMap.put("regex", ParseType.REGEX);
    }

    public static boolean isCommandSupported(String command) {
        return supportedCommandsMap.containsKey(command);
    }

}

@@ -256,16 +256,37 @@
 p%3C%3E();%0A%0A
+        // Supported%0A
         
@@ -335,16 +335,98 @@
 .GREP);%0A
+%0A        // May supported in future (see implementation in ParseHandler.handle)%0A//
         

Mark "regex" command as unsupported