Skip to content

Commit ad20896

Browse files
committed
Remove example ID check from yamale validator because we already do it better in the main validtor.
1 parent 80ce317 commit ad20896

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

aws_doc_sdk_examples_tools/metadata_validator.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,7 @@ def get_name(self):
8181
return "valid example ID"
8282

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

9086

9187
class BlockContent(Validator):

0 commit comments

Comments
 (0)