Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matching relative files #5

Open
pex opened this issue Nov 8, 2016 · 1 comment
Open

Matching relative files #5

pex opened this issue Nov 8, 2016 · 1 comment

Comments

@pex
Copy link

pex commented Nov 8, 2016

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
    )
  })
@sorensen
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants