absolutify icon indicating copy to clipboard operation
absolutify copied to clipboard

Matching relative files

Open pex opened this issue 8 years ago • 1 comments

A lot of people simply link to relative files like this: <a href="file.html">...</a>. Therefore the following test should also be green:

  it('string replace relative files', function() {
    assert.strictEqual(
      absolutify(
        '<a href="index.php">Section</a>' + ok
      , 'http://www.example.com'
      )
    , '<a href="http://www.example.com/index.php">Section</a>' + ok
    )
  })

pex avatar Nov 08 '16 14:11 pex

@pex This should be fixed along with the other reported issue in the new branch. https://github.com/sorensen/absolutify/blob/target-improvement/test.js#L75-L83

sorensen avatar Dec 25 '16 20:12 sorensen