mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-12 08:36:48 +02:00
Check Description not exceeding 100 characters
This commit is contained in:
parent
05c570399c
commit
a8537c7e85
2 changed files with 7 additions and 4 deletions
|
@ -63,6 +63,9 @@ def check_entry(line_num, segments):
|
|||
char = segments[index_desc][-1]
|
||||
if char in punctuation:
|
||||
add_error(line_num, "description should not end with {}".format(char))
|
||||
desc_length = len(segments[index_desc])
|
||||
if desc_length > 100:
|
||||
add_error(line_num, "description should not exceed 100 characters (currently {})".format(desc_length))
|
||||
# END Description
|
||||
# START Auth
|
||||
# values should conform to valid options only
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue