From cbad1ca9d1ff0de04924b938e96a911727b57a03 Mon Sep 17 00:00:00 2001 From: Niklas Eiling Date: Wed, 8 Feb 2023 10:31:52 +0100 Subject: [PATCH] ConnectString: also allow pipe as a connection target Signed-off-by: Niklas Eiling --- fpga/lib/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fpga/lib/utils.cpp b/fpga/lib/utils.cpp index 470210aa2..c2a1425a1 100644 --- a/fpga/lib/utils.cpp +++ b/fpga/lib/utils.cpp @@ -63,7 +63,7 @@ void fpga::ConnectString::parseString(std::string& connectString) return; } - static const std::regex regex("([0-9]+)([<\\->]+)([0-9]+|stdin|stdout)"); + static const std::regex regex("([0-9]+)([<\\->]+)([0-9]+|stdin|stdout|pipe)"); std::smatch match; if (!std::regex_match(connectString, match, regex) || match.size() != 4) { @@ -92,7 +92,7 @@ void fpga::ConnectString::parseString(std::string& connectString) int fpga::ConnectString::portStringToInt(std::string &str) const { - if (str == "stdin" || str == "stdout") { + if (str == "stdin" || str == "stdout" || str == "pipe") { return -1; } else { const int port = std::stoi(str);