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

yabwe / medium-editor / 3169 / 1
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 08 Feb 2017 09:54PM UTC
Files 21
Run time 2s
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

08 Feb 2017 09:53PM UTC coverage: 94.8%. First build
3169.1

Pull #1258

travis-ci

web-flow
Only add schemes to URLs with hostnames

Fixes: https://github.com/yabwe/medium-editor/issues/1250

This changes the way a scheme is prefixed to a URL when linkValidation
is on. Previously any URL that did not match the scheme regex would be
prefixed with 'http://' which meant that an absolute path such as '/'
would be changed to 'http:///'

This changes it so that the 'http://' is only prefixed if the first part
of the path looks like a hostname, which allows absolute paths to be
unchanged and most relative paths to be unchanged.

I say most as a path such as "test.txt" would be matched as a hostname and
converted to 'http://test.txt' but this seems an acceptable trade off
and definitely better than trying to store a list of valid TLDs so
filenames and hostnames can be determined.
Pull Request #1258: Only add schemes to URLs with hostnames

2388 of 2519 relevant lines covered (94.8%)

547.68 hits per line

Source Files on job 3169.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3169
  • Travis Job 3169.1
  • 319d004f on github
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