Skip to content

Commit

Permalink
Better check --longDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
kelson42 committed Jun 2, 2024
1 parent 0e3c1b5 commit 88cf916
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/metadata_constraints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const Metadata::ReservedMetadataTable reservedMetadataInfoTable = {

METADATA_ASSERT("LongDescription shouldn't be shorter than Description")
{
return !data.has("LongDescription")
|| data["LongDescription"].size() >= data["Description"].size();
return !data.has("LongDescription") ||
data["LongDescription"].size() == 0 ||
data["LongDescription"].size() >= data["Description"].size();
}

0 comments on commit 88cf916

Please sign in to comment.