Skip to content

Commit

Permalink
Fix spaces breaking formspec_version[] tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Dec 9, 2019
1 parent 9284313 commit 8e63d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/guiFormSpecMenu.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8e63d22

Please sign in to comment.