Thread: ltree valid characters

ltree valid characters

From
"Net Virtual Mailing Lists"
Date:
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