Fix spaces breaking formspec_version[] tag
authorrubenwardy <rw@rubenwardy.com>
Mon, 9 Dec 2019 21:05:07 +0000 (21:05 +0000)
committerrubenwardy <rw@rubenwardy.com>
Mon, 9 Dec 2019 21:05:07 +0000 (21:05 +0000)
src/gui/guiFormSpecMenu.cpp

index 728747eb86eee215fcde9c2aa45b4562a9eb9245..ab20840f97c5da16fb69ef2c413e8947f5d58676 100644 (file)
@@ -2262,7 +2262,7 @@ bool GUIFormSpecMenu::parseVersionDirect(const std::string &data)
                return false;
        }
 
-       if (parts[0] != "formspec_version") {
+       if (trim(parts[0]) != "formspec_version") {
                return false;
        }