Re: JSON doc example (matchiness)

2021-05-13 Thread Alexander Korotkov
On Mon, May 10, 2021 at 3:41 AM Michael Paquier wrote: > On Sun, May 09, 2021 at 11:17:47PM +0300, Alexander Korotkov wrote: > > I propose backpatching this to 12 when jsonpath was introduced. It > > seems useful to have this docs improvement every release supporting > > jsonpath. > > > > Objecti

Re: JSON doc example (matchiness)

2021-05-09 Thread Michael Paquier
On Sun, May 09, 2021 at 11:17:47PM +0300, Alexander Korotkov wrote: > I propose backpatching this to 12 when jsonpath was introduced. It > seems useful to have this docs improvement every release supporting > jsonpath. > > Objections? None. Backpatching that is a good idea, and your suggested r

Re: JSON doc example (matchiness)

2021-05-09 Thread Alexander Korotkov
On Sun, May 9, 2021 at 4:01 AM Alexander Korotkov wrote: > On Sat, May 8, 2021 at 7:09 PM Erik Rijkers wrote: > > On 5/8/21 3:48 AM, Michael Paquier wrote: > > > On Fri, May 07, 2021 at 10:18:44PM +0200, Erik Rijkers wrote: > > >> The JSON doc has this example (to show the need for double backsla

Re: JSON doc example (matchiness)

2021-05-08 Thread Alexander Korotkov
On Sat, May 8, 2021 at 7:09 PM Erik Rijkers wrote: > On 5/8/21 3:48 AM, Michael Paquier wrote: > > On Fri, May 07, 2021 at 10:18:44PM +0200, Erik Rijkers wrote: > >> The JSON doc has this example (to show the need for double backslash): > >> > >> $ ? (@ like_regex "^\\d+$") > >> > >> > >> The exam

Re: JSON doc example (matchiness)

2021-05-08 Thread Erik Rijkers
On 5/8/21 3:48 AM, Michael Paquier wrote: On Fri, May 07, 2021 at 10:18:44PM +0200, Erik Rijkers wrote: The JSON doc has this example (to show the need for double backslash): $ ? (@ like_regex "^\\d+$") The example is not wrong exactly, and can be cast to jsonpath, but as-is can never match

Re: JSON doc example (matchiness)

2021-05-07 Thread Michael Paquier
On Fri, May 07, 2021 at 10:18:44PM +0200, Erik Rijkers wrote: > > The JSON doc has this example (to show the need for double backslash): > > $ ? (@ like_regex "^\\d+$") > > > The example is not wrong exactly, and can be cast to jsonpath, but as-is can > never match anything. > > I think it'd b