Explorar el Código

Remove truism from end of gamepad mapping regexp

The rest of the line is guaranteed to either contain or not contain
characters.
Camilla Löwy hace 4 años
padre
commit
7c25dff002
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      CMake/GenerateMappings.cmake

+ 1 - 1
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")