Permalink
Browse files

Changes - characters in group names to _ for filenames

  • Loading branch information...
1 parent 184ec89 commit a053acdc41af206f4ab696e0640b7e175d995e76 @mothur-westcott mothur-westcott committed Aug 4, 2016
Showing with 7 additions and 1 deletion.
  1. +7 −1 source/commands/command.hpp
@@ -87,7 +87,13 @@ class Command {
if (filename.length() > 0) { //rip off last "."
filename = filename.substr(0, filename.length()-1);
}
- filename += it->second + ".";
+ filename += it->second + ".";
+ }else if ((it->first == "[group]") || (it->first == "[tag]")) {
+ string group = it->second;
+ for (int j = 0; j < group.length(); j++) {
+ if (group[j] == '-') { group[j] = '_'; }
+ }
+ filename += group + ".";
}else { filename += it->second + "."; }
}
}

0 comments on commit a053acd

Please sign in to comment.