From ce8eba3c7a0cbebb36dae9200e9a0b0dd127a419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Vis=C3=A9e?= Date: Sun, 31 Dec 2017 21:20:12 +0100 Subject: [PATCH] Fix screen size parsing single digit dimentions --- src/pix/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pix/client.rs b/src/pix/client.rs index b515a81..6a17afb 100644 --- a/src/pix/client.rs +++ b/src/pix/client.rs @@ -19,7 +19,7 @@ const CMD_READ_BUFFER_SIZE: usize = 32; // The response format of the screen size from a pixelflut server. const PIX_SERVER_SIZE_REGEX: &'static str = - r"^(?i)\s*SIZE\s*([[:digit:]])+\s*([[:digit:]])+\s*$"; + r"^(?i)\s*SIZE\s*([[:digit:]]+)\s*([[:digit:]]+)\s*$";