summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnne Lim <anne.lim@mongodb.com>2017-05-31 13:36:53 -0400
committerAnne Lim <anne.lim@mongodb.com>2017-06-01 13:37:08 -0400
commit6d36b9c90db9fea2c92f90ea7d9775a72b8fa339 (patch)
treeca79e7a2a2482c693f749e140cc34ac8a7ff27a9
parentaa6b880061964e9456cbc7f278a9bf1117d7c815 (diff)
downloadmongo-6d36b9c90db9fea2c92f90ea7d9775a72b8fa339.tar.gz
SERVER-29002: Fixed typo in IndexBoundsBuilder::simpleRegex
-rw-r--r--src/mongo/db/query/index_bounds_builder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/index_bounds_builder.cpp b/src/mongo/db/query/index_bounds_builder.cpp
index 5142d097b84..6589fd81c0a 100644
--- a/src/mongo/db/query/index_bounds_builder.cpp
+++ b/src/mongo/db/query/index_bounds_builder.cpp
@@ -142,7 +142,7 @@ string IndexBoundsBuilder::simpleRegex(const char* regex,
ss << c; // character should match itself
}
}
- } else if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '0') ||
+ } else if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') ||
(c == '\0')) {
// don't know what to do with these
r = ss;