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

Kikobeats / url-http / 31023409704
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: main
Ran 05 Aug 2026 04:04PM UTC
Jobs 1
Files 2
Run time 1min
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

05 Aug 2026 04:03PM UTC coverage: 96.842% (-1.6%) from 98.413%
31023409704

push

github

Kikobeats
perf: avoid rebuilding url-regex-safe patterns per call

The two fixed regex shapes (exact for ordinary hosts, unanchored for IPv6
authorities) are now built once at load, and per-IDN-TLD regexes are memoized
in a 256-entry FIFO cache bounded against caller-supplied xn-- labels.

Measured per call: 21.6us to 0.35us on ordinary hosts, 3.8us to 0.48us on
punycode hosts.

Also drops the scheme regex in favour of the parser's own normalized
`protocol`, and removes the loose match against the full href on the IPv6
path: `origin + '/'` is always a prefix of `href` for special schemes, so
matching the origin implies matching the href.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3AcnZdy222rWCkptbywJT

22 of 23 branches covered (95.65%)

Branch coverage included in aggregate %.

48 of 50 new or added lines in 2 files covered. (96.0%)

70 of 72 relevant lines covered (97.22%)

67.26 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
96.25
-1.62% index.js
Jobs
ID Job ID Ran Files Coverage
1 31023409704.1 05 Aug 2026 04:04PM UTC 2
96.84
GitHub Action Run
Source Files on build 31023409704
  • Tree
  • List 2
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31023409704
  • a6677d27 on github
  • Prev Build on master (#31021105080)
  • Next Build on master (#31038955413)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc