Skip to content

Conversation

@peterdj45
Copy link
Member

@peterdj45 peterdj45 commented Dec 19, 2025

@peterdj45 peterdj45 requested a review from a team as a code owner December 19, 2025 03:44
@peterdj45 peterdj45 added the review-needed Indicates that a PR is waiting for review label Dec 19, 2025
@github-actions github-actions bot added the in-test-rules PR is in our testing suite to collect telemetry label Dec 19, 2025
and (
regex.icontains(sender.display_name,
'\b[aaa𝝰aa𝑎𝗮𝕒𝖆𝓪𝚊𝞪аɑα𝔞𝒂𝘢𝛂⍺𝒶𝙖𝜶𝛼𝐚𝖺]maz[o0]n\s?(pay|marketplace|\.com)|ᵃ⤻ᶻ'
'\b[aaa𝝰aa𝑎𝗮𝕒𝖆𝓪𝚊𝞪аɑα𝔞𝒂𝘢𝛂⍺𝒶𝙖𝜶𝛼𝐚𝖺]maz[o0]n\s?(pay|marketplace|\.com|\.\w{2}\b|\.co\.\w{2})|ᵃ⤻ᶻ'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we can move this to a strings.parse_domain and do subdomain checking? This might handle more of these types of domains more fully

  or any(regex.iextract(sender.display_name,
                        '\b((?:[a-zA-Z0-9][-a-zA-Z0-9]*\.)+[a-zA-Z]{2,})\b'
         ),
         any(.groups, strings.parse_domain(.).sld == "amazon")
  )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-test-rules PR is in our testing suite to collect telemetry review-needed Indicates that a PR is waiting for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants