referenceable id question

Involved development of the OpenMW construction set.
Post Reply
User avatar
cc9cii
Posts: 523
Joined: 28 Mar 2013, 04:01

referenceable id question

Post by cc9cii »

CSVWorld::IdValidator::isValid() has this check:

Code: Select all

    if (!first && (c.isDigit()  || c.isSpace()))
        return true;
Which means one can't create (or clone) something like "6th bell hammer" using the creator on the table bottom box.

Can the digit check be moved (i.e. made to return true always) or will that break something else?
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: referenceable id question

Post by Zini »

The idea here is to be more strict about naming than OpenCS. You can still use all kind of news but newly created records need to be named more sensible.
The case you mentioned is one of the least problematic. But still, I think not allowing names starting with a digit makes perfect sense.
Post Reply