ltree valid characters

Started by Net Virtual Mailing Listsover 21 years ago1 messagesgeneral
Jump to latest
#1Net Virtual Mailing Lists
mailinglists@net-virtual.com

Hello,

I'm using ltree but I have a requirement to use the "-" character in the
text of a node. Can I just change (in ltree.h) the following line:

#define ISALNUM(x) ( isalnum((unsigned char)(x)) || (x) == '_')

to:

#define ISALNUM(x) ( isalnum((unsigned char)(x)) || (x) == '_' ||
(x) == '-')

.. or will there be hidden consequences of this?...

Thanks!

- Greg