23 package com.realtime.crossfire.jxclient.scripts;
28 import java.util.Collection;
29 import java.util.HashSet;
30 import java.util.regex.Pattern;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
44 private final Collection<String>
commands =
new HashSet<>();
76 final String args2 = args.getMonitorCommand();
77 if (args2.isEmpty()) {
113 final StringBuilder sb =
new StringBuilder();
115 sb.append(Pattern.quote(command));
118 final int length = sb.length();
128 sb.setLength(length-1);
129 pattern = Pattern.compile(sb.toString());