Skip to content

Not prepend with authentication information portion of a URL #4

@Arttse

Description

@Arttse

Ok, in 1.0.4 you added support to ignore protocols with non colon-slash-slash. But now it not prepend with auth (the authentication information portion of a URL). Example:

const prependHttp = require('prepend-http');

prependHttp('login:password@site.com');
//=> login:password@site.com

prependHttp('login:password@site.com:1234');
//=> login:password@site.com:1234

prependHttp('login:password@site.com/path/name');
//=> login:password@site.com/path/name

In version 1.0.3 it worked correctly.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions