Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions aws_doc_sdk_examples_tools/metadata_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ def get_name(self):
return "valid example ID"

def _is_valid(self, value: str):
if not re.fullmatch("^[\\da-z-]+(_[\\da-zA-Z]+)+$", value):
return False
else:
svc = value.split("_")[0]
return (svc == "cross") or (svc in self.services)
return re.fullmatch("^[\\da-z-]+(_[\\da-zA-Z-]+)+$", value)


class BlockContent(Validator):
Expand Down
Loading