Skip to content

Commit a638d8c

Browse files
TheGoldenPlatypusgregolsky
authored andcommitted
RavenDB-24866: fix tag validation method
1 parent fa81164 commit a638d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/modules/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def is_valid_url(url):
141141

142142
def is_valid_tag(tag):
143143
"""Return True if the tag is a non-empty uppercase alphanumeric string of max 4 chars."""
144-
return isinstance(tag, str) and tag.isalnum() and tag.isupper() and 1 < len(tag) < 4
144+
return isinstance(tag, str) and tag.isalnum() and tag.isupper() and 1 <= len(tag) <= 4
145145

146146

147147
def validate_paths(*paths):

0 commit comments

Comments
 (0)