From: Tomas Wenström Date: Sun, 11 Aug 2019 10:59:34 +0000 (+0200) Subject: Bugfix - group regex X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=6b446d77ba31e5a4f5905689ef2345ed40b35296;p=kaka%2Fcakelight.git Bugfix - group regex --- diff --git a/src/kaka/cakelight/Console.java b/src/kaka/cakelight/Console.java index cd48f49..faa7054 100644 --- a/src/kaka/cakelight/Console.java +++ b/src/kaka/cakelight/Console.java @@ -47,11 +47,11 @@ public class Console extends Thread { ); 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);