Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-09-10 19:17:52 +0000
committerStijn Buys <ingar@osirion.org>2008-09-10 19:17:52 +0000
commit83fb219e62113a9f41888af4f2726e5ce5305970 (patch)
tree3ba9780192fc7aa7d1fe7988b30a85c5ba08d422 /src/auxiliary
parent033bd59cfc2dff93529ad448459ad6348ea29c8d (diff)
serverside entities
Diffstat (limited to 'src/auxiliary')
-rw-r--r--src/auxiliary/functions.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auxiliary/functions.cc b/src/auxiliary/functions.cc
index a6187af..860524a 100644
--- a/src/auxiliary/functions.cc
+++ b/src/auxiliary/functions.cc
@@ -149,7 +149,7 @@ void to_label(std::string &text)
size_t pos = 0;
while (pos < text.size()) {
- if ((text[pos] == ' ') || (text[pos] == '-')) {
+ if ((text[pos] == ' ') || (text[pos] == '-') || (text[pos] == '_')) {
text[pos] = '_';
pos++;
} else if ((text[pos] >= 'A') && (text[pos] <= 'Z')) {