Fix #15 - accept aaa-bbb-1 as valid according to RFC 1035
This commit is contained in:
parent
5c12405b99
commit
00078afa07
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ bool is_valid_name( const string& s )
|
||||||
if( c >= 'a' && c <= 'z' ){}
|
if( c >= 'a' && c <= 'z' ){}
|
||||||
else if( c >= '0' && c <= '9' )
|
else if( c >= '0' && c <= '9' )
|
||||||
{
|
{
|
||||||
if( prev == ' ' || prev == '.' || prev == '-' || prev == '/' ) return false;
|
if( prev == ' ' || prev == '.' || prev == '/' ) return false;
|
||||||
}
|
}
|
||||||
else switch( c )
|
else switch( c )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue