Skip to content

regex expression for validUrlQueryChars unable to identify URI Template  #422

@AjayKumar-25

Description

@AjayKumar-25

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions