[racktables-users] Tag names and validTagName()

  • From: nug <nug@xxxxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Wed, 21 Nov 2012 16:02:54 +0400

Hi,

Recently I had a problem with adding a new tag (e.g. "foobar foo.bar."). This
tag simply cannot be added to a RackTables up to 0.20.1:

define ('TAGNAME_REGEXP', '/^[\p{L}0-9]([. _~-]?[\p{L}0-9])*$/u');

 ...

if (!validTagName ($sic[$argname]))
        throw new InvalidRequestArgException ($argname, $sic[$argname], 
'Invalid tag name');

Unfortunately there is no documentation for this code. Maybe anyone know
more about this behavior?


Other related posts: