Skip to content

Matching relative files #5

@pex

Description

@pex

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
    )
  })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions