Unverified Commit d0ffa708 authored by chrisvroberts's avatar chrisvroberts Committed by GitHub

Work around regex_replace issue in GCC<4.9

GCC pre 4.9 has issue with template arg deduction which means old call passing char[2] to std::regex_replace as replacement string fails to build.
parent a8bbc6d4
......@@ -99,7 +99,7 @@ SegmentTreeNode::getSegmentType(const std::string_view& fragment) {
std::string SegmentTreeNode::sanitizeResource(const std::string& path) {
const auto& dup = std::regex_replace(path,
SegmentTreeNode::multiple_slash, "/");
SegmentTreeNode::multiple_slash, std::string("/"));
if (dup[dup.length() - 1] == '/') {
return dup.substr(1, dup.length() - 2);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment