mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-26 02:20:54 +00:00
Make it so that bad text always throws a nlwarning
This commit is contained in:
parent
87520b2909
commit
6deea176a8
1 changed files with 0 additions and 17 deletions
|
@ -323,23 +323,6 @@ bool CI18N::parseLabel(ucstring::const_iterator &it, ucstring::const_iterator &l
|
|||
ucstring::const_iterator rewind = it;
|
||||
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@_]*
|
||||
while (it != last &&
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue