Prechádzať zdrojové kódy

Remove truism from end of gamepad mapping regexp

The rest of the line is guaranteed to either contain or not contain
characters.

(cherry picked from commit 7c25dff002b780bcd2f95c072f8a3f79327430be)
Camilla Löwy 4 rokov pred
rodič
commit
cf70b10692
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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")