From b339adaa0250ba0e435dbbd2e58fd6a4f5c2cb6c Mon Sep 17 00:00:00 2001 From: fly Date: Sat, 15 Feb 2020 22:26:17 +0000 Subject: [PATCH] Fixed regex Signed-off-by: fly --- worldbuild-runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldbuild-runner.py b/worldbuild-runner.py index 5180d9f..6b101ea 100755 --- a/worldbuild-runner.py +++ b/worldbuild-runner.py @@ -120,7 +120,7 @@ while running: print("Running: " + str(l.run_count)) print("Shutting down: " + str(l.stop_count)) else: - match = re.match("(set workers) ([0-9]?)", cmd) + match = re.match("(set workers) ([0-9]+)", cmd) if match != None: if match.group(1) == "set workers": l.set_proc_count(int(match.group(2)))