• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

microlinkhq / metascraper / 28430542076
98%

Build:
DEFAULT BRANCH: master
Ran 30 Jun 2026 08:22AM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
28430542076

push

github

web-flow
fix(metascraper-amazon): match Amazon domains via PSL hostname, not substring regex (#852)

* fix(metascraper-amazon): match Amazon domains via PSL hostname, not substring regex

The previous URL test was an unanchored substring regex:

  /https?:\/\/(.*amazon\..*\/.*|.*amzn\..*\/.*|.*a\.co\/.*)/i

The 'a.co' alternative matched any URL whose host ended in a letter
followed by '.co/' (e.g. rangemedia.co, formula.co, asitea.co),
which caused the plugin's rules - including the hardcoded
publisher: 'Amazon' - to fire on unrelated sites.

Switch to a hostname check against parseUrl().domain (PSL-aware
via tldts) so we match exactly amazon.<tld>, amzn.<tld>, and the
a.co short link.

Closes #851

* test(metascraper-amazon): cover subdomain-spoof rejection
Source Files on build 28430542076
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #28430542076
  • ec0d494d on github
  • Prev Build on master (#28007771824)
  • Next Build on master (#28774130540)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc