From 7c25dff002b780bcd2f95c072f8a3f79327430be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 25 Aug 2021 12:09:21 +0200 Subject: [PATCH] Remove truism from end of gamepad mapping regexp The rest of the line is guaranteed to either contain or not contain characters. --- CMake/GenerateMappings.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMake/GenerateMappings.cmake b/CMake/GenerateMappings.cmake index e29bb4a8..47e63741 100644 --- a/CMake/GenerateMappings.cmake +++ b/CMake/GenerateMappings.cmake @@ -23,7 +23,7 @@ endif() file(STRINGS "${source_path}" lines) foreach(line ${lines}) - if (line MATCHES "^[0-9a-fA-F].*$") + if (line MATCHES "^[0-9a-fA-F]") if (line MATCHES "platform:Windows") if (GLFW_WIN32_MAPPINGS) set(GLFW_WIN32_MAPPINGS "${GLFW_WIN32_MAPPINGS}\n")