diff --git a/EGnStringUtils.h b/EGnStringUtils.h index 78e31c1..d2dcd61 100644 --- a/EGnStringUtils.h +++ b/EGnStringUtils.h @@ -103,7 +103,7 @@ IsValidDxfName( const std::string& sName) { if ( &sName == nullptr || sName.empty()) return false ; - return ( sName.find_first_of( "<>/\\\":;?*|='", 0) == std::string::npos) ; + return ( sName.find_first_of( " <>/\\\":;?*|='", 0) == std::string::npos) ; } //---------------------------------------------------------------------------- @@ -111,7 +111,7 @@ inline bool ValidateDxfName( std::string& sName) { std::string::size_type i ; - while ( ( i = sName.find_first_of( "<>/\\\":;?*|='")) != std::string::npos) + while ( ( i = sName.find_first_of( " <>/\\\":;?*|='")) != std::string::npos) sName[i] = '_' ; return true ; }