Unverified Commit 12c07ba5 authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #415 from chrisvroberts/patch-1

Work around regex_replace issue in GCC<4.9
parents a8bbc6d4 d0ffa708
......@@ -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