summaryrefslogtreecommitdiff
path: root/datastore-leveldb/src/db.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'datastore-leveldb/src/db.cpp')
-rw-r--r--datastore-leveldb/src/db.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/datastore-leveldb/src/db.cpp b/datastore-leveldb/src/db.cpp
index a952512..84e30f3 100644
--- a/datastore-leveldb/src/db.cpp
+++ b/datastore-leveldb/src/db.cpp
@@ -12,7 +12,8 @@ static bool sensor_name_is_sane(std::string& name) {
for (auto it = name.begin(); it != name.end(); ++it) {
if (not ((*it >= '0' and *it <= '9') or
(*it >= 'A' and *it <= 'Z') or
- (*it >= 'a' and *it <= 'z'))) {
+ (*it >= 'a' and *it <= 'z') or
+ (*it == '.'))) {
return false;
}
}