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:
parent
4a7cedf9d6
commit
0b140c7313
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user