absolutify
absolutify copied to clipboard
Matching relative files
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 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