diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2013-04-18 17:34:27 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2013-04-18 17:34:27 +0200 |
commit | 87f4134201f0a0840415aab531e32ca714bc7a36 (patch) | |
tree | cf148ecc810f92ca2e4c177498a56130806ed4e4 /datastore-leveldb/src/db.cpp | |
parent | 7c8e064216cc672557cbf3892ff090490505e408 (diff) | |
download | ebus-alt-87f4134201f0a0840415aab531e32ca714bc7a36.tar.gz ebus-alt-87f4134201f0a0840415aab531e32ca714bc7a36.zip |
leveldb geht so
Diffstat (limited to 'datastore-leveldb/src/db.cpp')
-rw-r--r-- | datastore-leveldb/src/db.cpp | 3 |
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; } } |