Properly support library file names containing a colon (such as URLs).

This commit is contained in:
Alex Beregszaszi
2018-01-05 13:24:07 +00:00
parent 35095e9fcc
commit 9e7e312fdf
3 changed files with 37 additions and 2 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ Json::Value formatLinkReferences(std::map<size_t, std::string> const& linkRefere
for (auto const& ref: linkReferences)
{
string const& fullname = ref.second;
size_t colon = fullname.find(':');
size_t colon = fullname.rfind(':');
solAssert(colon != string::npos, "");
string file = fullname.substr(0, colon);
string name = fullname.substr(colon + 1);