Skip to content

Commit

Permalink
Accept tab \t and spaces as separator in the mutation file
Browse files Browse the repository at this point in the history
  • Loading branch information
trongnhanuit committed Aug 12, 2023
1 parent 81f718e commit 4c0f7e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/alisim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ std::vector<std::pair<std::string,std::string>> readMutations(const std::string&
if (line.length() < 5)
outError("Invalid format '" + line + "'. Expected format should be <node_name><spaces><old_state><site><new_state>");

// replace \t by a space
line = regex_replace(line, std::regex("\t"), " ");

// get the node name
std::string node_name = "";
pos = line.find(" ");
Expand Down

0 comments on commit 4c0f7e1

Please sign in to comment.