Skip to content

Commit

Permalink
Fix validation logic for screenshot description (#7755)
Browse files Browse the repository at this point in the history
  • Loading branch information
skw398 authored May 27, 2024
1 parent d8f809f commit 1a2f5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pub_package_reader/lib/pub_package_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ Iterable<ArchiveIssue> checkScreenshots(

// validate screenshot text
final textLength = s.description.trim().length;
if (textLength <= 10) {
if (textLength < 10) {
yield ArchiveIssue(
'Screenshot description for `${s.path}` is too short. Should be at least 10 characters.');
}
Expand Down

0 comments on commit 1a2f5c0

Please sign in to comment.