Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemartinlogan committed Feb 7, 2024
1 parent 6546b62 commit f193f74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/hermes/config_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ struct UserPathInfo {
UserPathInfo() = default;

static std::string ToRegex(const std::string &path) {
std::string regex_pattern = "^"; // Start of line anchor
std::string regex_pattern = "^";
for (char c : path) {
if (c == '.') {
regex_pattern += "\\."; // Escape period
regex_pattern += "\\.";
} else if (c == '/') {
regex_pattern += "\\/"; // Escape forward slash
regex_pattern += "\\/";
} else if (c == '*') {
regex_pattern += ".*"; // Match any character
regex_pattern += ".*";
} else {
regex_pattern += c;
}
Expand Down

0 comments on commit f193f74

Please sign in to comment.