mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
regex really works
This commit is contained in:
parent
30094cdb68
commit
a7b7184f09
@ -207,7 +207,7 @@ bool JSMatcher::matches(JSObj& jsobj, bool *deep) {
|
||||
if( e.type() == String )
|
||||
p = e.valuestr();
|
||||
else if( e.type() == Number ) {
|
||||
sprintf(buf, "%Lf", e.number());
|
||||
sprintf(buf, "%f", e.number());
|
||||
}
|
||||
else if( e.type() == Date ) {
|
||||
unsigned long long d = e.date();
|
||||
@ -216,7 +216,6 @@ bool JSMatcher::matches(JSObj& jsobj, bool *deep) {
|
||||
ctime_s(buf, 64, &t);
|
||||
#else
|
||||
ctime_r(&t, buf);
|
||||
cout << "CTIME:" << buf << endl;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user