rename drive letter regex to make room for expansion

This commit is contained in:
Nicholas O'Connor 2019-05-15 17:16:54 -07:00
parent a6554161b8
commit 54a1d35556

View File

@ -18,9 +18,9 @@ using namespace cellar;
string cellar::paths::translate(std::string in_path, bool lazy) {
bool windows_input;
static regex drive_letter(R"([a-zA-Z]:\\)");
static regex drive_letter_rgx(R"([a-zA-Z]:\\)");
windows_input = regex_match(in_path.substr(0, 3), drive_letter);
windows_input = regex_match(in_path.substr(0, 3), drive_letter_rgx);
if (!lazy) {
output::warning("non-lazy path translation is not implemented yet");