Fix screen size parsing single digit dimentions

This commit is contained in:
Tim Visée
2017-12-31 21:20:12 +01:00
parent 00c6cf7bfe
commit ce8eba3c7a

View File

@@ -19,7 +19,7 @@ const CMD_READ_BUFFER_SIZE: usize = 32;
// The response format of the screen size from a pixelflut server. // The response format of the screen size from a pixelflut server.
const PIX_SERVER_SIZE_REGEX: &'static str = 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*$";