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

Not recognizing query params when using: ...)?... #144

Open
fladenstein opened this issue Apr 26, 2024 · 0 comments
Open

Not recognizing query params when using: ...)?... #144

fladenstein opened this issue Apr 26, 2024 · 0 comments

Comments

@fladenstein
Copy link

fladenstein commented Apr 26, 2024

Anchorme Version: 3.0.8

Description

When using anchorme.list() with the following link:

www.example.com/(test)?test=test

it will only return the following:

[
  {
    start: 0,
    end: 30,
    string: 'https://www.example.com/(test)',
    isURL: true,
    protocol: 'https://',
    port: undefined,
    ipv4: undefined,
    ipv6: undefined,
    host: 'www.example.com',
    confirmedByProtocol: true,
    path: '/(test)',
    query: undefined,
    fragment: undefined,
    reason: 'url'
  }
]

However, it should actually be:

[
  {
    start: 0,
    end: 30,
    string: 'https://www.example.com/(test)?test=test',
    isURL: true,
    protocol: 'https://',
    port: undefined,
    ipv4: undefined,
    ipv6: undefined,
    host: 'www.example.com',
    confirmedByProtocol: true,
    path: '/(test)',
    query: 'test=test',
    fragment: undefined,
    reason: 'url'
  }
]

The issue seems to be the )?, because it works with the following link: https://www.example.com/(test)/?test=test

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

1 participant