Merged in botanic/ryzomcore-botanic-testing (pull request #21)

Make it so that bad text always throws a nlwarning
This commit is contained in:
Matthew Lagoe 2014-02-08 18:33:27 -08:00
commit 3f04907c31

View file

@ -323,23 +323,6 @@ bool CI18N::parseLabel(ucstring::const_iterator &it, ucstring::const_iterator &l
ucstring::const_iterator rewind = it; ucstring::const_iterator rewind = it;
label.erase(); label.erase();
// first char must be A-Za-z@_
if (it != last &&
(
(*it >= '0' && *it <= '9')
|| (*it >= 'A' && *it <= 'Z')
|| (*it >= 'a' && *it <= 'z')
|| (*it == '_')
|| (*it == '@')
)
)
label.push_back(char(*it++));
else
{
it = rewind;
return false;
}
// other char must be [0-9A-Za-z@_]* // other char must be [0-9A-Za-z@_]*
while (it != last && while (it != last &&
( (