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

regex expression for validUrlQueryChars unable to identify URI Template #422

Open
AjayKumar-25 opened this issue Mar 4, 2024 · 0 comments

Comments

@AjayKumar-25
Copy link

Describe the bug
I am using validUrlQueryChars regex ( i.e. /[a-z0-9!?*'@();:&=+$/%#[]-_.,~|]/i; ) to detect an URI with Template but it is not detecting complete url

To Reproduce

example url - https://abc.com/path?param={VARIABLE}

Using above regex for matching query params for given url, it's only able to identify https://abc.com/path?param= this as the matched URL

Expected behavior
The regex should be able to match complete url i.e. https://abc.com/path?param={VARIABLE}

Please suggest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant