mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 13:09:40 +00:00
Fix(idvalidator): Allow any printable character in refIds
This commit is contained in:
parent
56596e7589
commit
9fc66d5de6
1 changed files with 1 additions and 7 deletions
|
@ -4,13 +4,7 @@
|
||||||
|
|
||||||
bool CSVWorld::IdValidator::isValid(const QChar& c, bool first) const
|
bool CSVWorld::IdValidator::isValid(const QChar& c, bool first) const
|
||||||
{
|
{
|
||||||
if (c.isLetter() || c == '_')
|
return c.isPrint() ? true : false;
|
||||||
return true;
|
|
||||||
|
|
||||||
if (!first && (c.isDigit() || c.isSpace()))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CSVWorld::IdValidator::IdValidator(bool relaxed, QObject* parent)
|
CSVWorld::IdValidator::IdValidator(bool relaxed, QObject* parent)
|
||||||
|
|
Loading…
Reference in a new issue