Browse Source

formatting

Wolfgang Ortmann 8 years ago
parent
commit
0c2de796e1
2 changed files with 1 additions and 2 deletions
  1. 0 1
      src/excludetools.cpp
  2. 1 1
      src/stringtools.cpp

+ 0 - 1
src/excludetools.cpp

@@ -64,4 +64,3 @@ Strings getExclusions(const KindConfig& conf)
     }
     }
   return exclusions;
   return exclusions;
 }
 }
-

+ 1 - 1
src/stringtools.cpp

@@ -144,7 +144,7 @@ string getWord(const string& s, unsigned int& i)
   if (!isalpha(s[i]) && s[i] != '-' && s[i] != '_')
   if (!isalpha(s[i]) && s[i] != '-' && s[i] != '_')
     throw Exception("getWord", "letter expected");
     throw Exception("getWord", "letter expected");
   string is;
   string is;
-  while (i < s.size() && (isalpha(s[i]) || s[i] == '-' || s[i] == '_'))
+  while (i < s.size() && (isalnum(s[i]) || s[i] == '-' || s[i] == '_'))
     {
     {
       is += s[i];
       is += s[i];
       ++i;
       ++i;