Skip to content

example.com?foo=bar detected as http://example.com instead of http://example.com/?foo=bar #516

@KaKi87

Description

@KaKi87

Hi,

                                                   // +-----------------------------+--------------------+
                                                   // | Expected                    | Actual             |
import { find } from 'linkifyjs';                  // +-----------------------------+--------------------+
console.log(find('example.com/?foo=bar')[0].href); // | http://example.com/?foo=bar | Same               |
console.log(find('example.com?foo=bar')[0].href);  // | http://example.com/?foo=bar | http://example.com |
                                                   // +-----------------------------+--------------------+

Thanks

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