]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tools: also accept '+' as a valid character in an identifier
authorWilly Tarreau <w@1wt.eu>
Mon, 17 Feb 2020 05:34:11 +0000 (06:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Feb 2020 05:37:40 +0000 (06:37 +0100)
commita71667c07d4cd9f6d350e100caa9039a7fd2d7a1
tree8cd8d21064c69804feb7309a9b0676b982f88735
parent07e1e3c93e74e44389545e457f0e1ff2e807cb9a
BUG/MINOR: tools: also accept '+' as a valid character in an identifier

The function is_idchar() was added by commit 36f586b ("MINOR: tools:
add is_idchar() to tell if a char may belong to an identifier") to
ease matching of sample fetch/converter names. But it lacked support
for the '+' character used in "base32+src" and "url32+src". A quick
way to figure the list of supported sample fetch+converter names is
to issue the following command:

   git grep '"[^"]*",.*SMP_T_.*SMP_USE_'|cut -f2 -d'"'|sort -u

No more entry is reported once searching for characters not covered
by is_idchar().

No backport is needed.
include/common/standard.h