0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

support '-' in fields for mongoimport/export SERVER-1127

This commit is contained in:
Mathias Stearn 2010-06-03 20:54:08 -04:00
parent 4a7cedf9d6
commit 0b140c7313

View File

@ -258,7 +258,7 @@ namespace mongo {
pcrecpp::StringPiece input(fields_arg);
string f;
pcrecpp::RE re("([#\\w\\.\\s]+),?" );
pcrecpp::RE re("([#\\w\\.\\s\\-]+),?" );
while ( re.Consume( &input, &f ) ){
_fields.push_back( f );
b.append( f.c_str() , 1 );