You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This throws Json doesn't match with "(chrome|firefox|msedge)" at "$.browsers[0].browser" but found "regex"
This is weird, because if I use /(chrome|firefox)/ then it correctly breaks at $.browsers[20].browser, where there is an instance of msedge, outside the scope of expected regex.
Not sure why it's breaking at index 0 in my original regex, where chrome is present.
The text was updated successfully, but these errors were encountered:
Describe the bug
I have to validate a json which has a format like below
My validation code snippet is:
This throws
Json doesn't match with "(chrome|firefox|msedge)" at "$.browsers[0].browser" but found "regex"
This is weird, because if I use
/(chrome|firefox)/
then it correctly breaks at $.browsers[20].browser, where there is an instance of msedge, outside the scope of expected regex.Not sure why it's breaking at index 0 in my original regex, where chrome is present.
The text was updated successfully, but these errors were encountered: