);
cakelight.setMode(new SingleColorMode(c));
System.out.println("setting color to " + c);
- } else if (input.matches("g|gamma\\s+[0-9.]+")) {
+ } else if (input.matches("(g|gamma)\\s+[0-9.]+")) {
String[] split = input.split("\\s+");
config.gamma = Double.parseDouble(split[1]);
System.out.println("setting gamma to " + config.gamma);
- } else if (input.matches("s|saturation\\s+[0-9.]+")) {
+ } else if (input.matches("(s|saturation)\\s+[0-9.]+")) {
String[] split = input.split("\\s+");
config.video.saturation = Double.parseDouble(split[1]);
System.out.println("setting saturation to " + config.video.saturation);