Remove truism from end of gamepad mapping regexp

The rest of the line is guaranteed to either contain or not contain
characters.
This commit is contained in:
Camilla Löwy 2021-08-25 12:09:21 +02:00
parent daed5edd6e
commit 7c25dff002

View File

@ -23,7 +23,7 @@ endif()
file(STRINGS "${source_path}" lines) file(STRINGS "${source_path}" lines)
foreach(line ${lines}) foreach(line ${lines})
if (line MATCHES "^[0-9a-fA-F].*$") if (line MATCHES "^[0-9a-fA-F]")
if (line MATCHES "platform:Windows") if (line MATCHES "platform:Windows")
if (GLFW_WIN32_MAPPINGS) if (GLFW_WIN32_MAPPINGS)
set(GLFW_WIN32_MAPPINGS "${GLFW_WIN32_MAPPINGS}\n") set(GLFW_WIN32_MAPPINGS "${GLFW_WIN32_MAPPINGS}\n")