Allow double hyphens
This commit is contained in:
parent
6279515c54
commit
1acf66265f
1 changed files with 2 additions and 1 deletions
|
|
@ -67,8 +67,9 @@ bool is_valid_name( const string& s )
|
|||
case '/':
|
||||
if( ++num_slash > 1 ) return false;
|
||||
case '.':
|
||||
if( prev == '-' ) return false;
|
||||
case '-':
|
||||
if( prev == ' ' || prev == '/' || prev == '.' || prev == '-' ) return false;
|
||||
if( prev == ' ' || prev == '/' || prev == '.' ) return false;
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue