BUG/MINOR: sample: Make the `word` converter compatible with `-m found`
authorTim Duesterhus <tim@bastelstu.be>
Thu, 30 Nov 2023 15:41:17 +0000 (16:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Dec 2023 13:35:47 +0000 (14:35 +0100)
commit1dcc6a8a969893057e56d4eba089a538619c72c2
tree16b29f00d44720791e0a0bbf457699ffd4d3db6d
parent8f8349fbefab53335e434585b32e1eca077e05b1
BUG/MINOR: sample: Make the `word` converter compatible with `-m found`

Previously an expression like:

    path,word(2,/) -m found

always returned `true`.

Bug exists since the `word` converter exists. That is:
c9a0f6d0232cf44d6b08d1964b9097a45a6c65f0

The same bug was previously fixed for the `field` converter in commit
4381d26edc03faa46401eb0fe82fd7be84be14fd.

The fix should be backported to 1.6+.
reg-tests/converter/word.vtc [new file with mode: 0644]
src/sample.c