Skip to content
Snippets Groups Projects
Commit c955ff79 authored by Lais Frigério's avatar Lais Frigério
Browse files

Issue #10: Comment - if the line start with a different character than quotes

parent 4d0caf0e
No related branches found
No related tags found
2 merge requests!51Merge development to master,!30Parse config and proxy fle
......@@ -103,11 +103,7 @@ bool isValid(std::string* line) {
if (std::regex_match((*line), std::regex("((\\/\\/)|(\\/\\*)|(\\#))(.*)")))
return false;
/*
* if the line start with a different character than quote
* Note: this work only for character = letter.
* Case a special character, like ":", "#", it doesn't work.
*/
/* if the line start with a different character than quote */
if (!std::regex_match((*line), std::regex("(\")(.*)")))
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment