Skip to content

Commit

Permalink
Fix metadata validator check for non-entity uses of AWS. (awsdocs#5234)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laren-AWS authored and shepazon committed Aug 10, 2023
1 parent 87613fe commit 134cc33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .doc_gen/validation/validate_doc_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _is_valid(self, value):
valid = True
if self.check_aws:
# All occurrences of AWS must be entities or within a word.
valid = len(re.findall('(?<![&\\da-zA-Z])AWS|AWS(?![;\\da-zA-Z])', value)) == 0
valid = len(re.findall('(?<![&\da-zA-Z])AWS(?![;\da-zA-Z])', value)) == 0
if not valid:
self.last_err = 'valid string: it contains a non-entity usage of "AWS"'
if valid and self.upper_start:
Expand Down

0 comments on commit 134cc33

Please sign in to comment.