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>
Tue, 31 Dec 2019 21:31:53 +0000 (21:31 +0000)
src/gui/guiFormSpecMenu.cpp

index 83d7923d900d4703a8b0de1c29d99bc3c8072090..8d740237c49e6670690cf14fc352f74d68e89d7b 100644 (file)
@@ -2005,7 +2005,7 @@ bool GUIFormSpecMenu::parseVersionDirect(const std::string &data)
                return false;
        }
 
-       if (parts[0] != "formspec_version") {
+       if (trim(parts[0]) != "formspec_version") {
                return false;
        }