We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
let url = 'WWW.POS.COM'; let test = getUrls(url,{extractFromQueryString: true});
getUrls failed with this error: Invalid URL: WWW.POS.COM
Invalid URL: WWW.POS.COM
in line 8:
const {searchParams} = (new URL(url.replace(/^(\/\/|(www\.))/, 'http://$2')));
solution: add i in regex
const {searchParams} = (new URL(url.replace(/^(\/\/|(www\.))/i, 'http://$2')));
The text was updated successfully, but these errors were encountered:
PR welcome with a test.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
getUrls failed with this error:
Invalid URL: WWW.POS.COM
in line 8:
const {searchParams} = (new URL(url.replace(/^(\/\/|(www\.))/, 'http://$2')));
solution:
add i in regex
const {searchParams} = (new URL(url.replace(/^(\/\/|(www\.))/i, 'http://$2')));
The text was updated successfully, but these errors were encountered: