Merge pull request #834 from pandaninjas/patch-2
This commit is contained in:
commit
5883c30b84
@ -361,7 +361,7 @@ void InstanceImportTask::processModrinth()
|
|||||||
} else {
|
} else {
|
||||||
QString pack_id;
|
QString pack_id;
|
||||||
if (!m_sourceUrl.isEmpty()) {
|
if (!m_sourceUrl.isEmpty()) {
|
||||||
QRegularExpression regex(R"(data\/(.*)\/versions)");
|
QRegularExpression regex(R"(data\/([^\/]*)\/versions)");
|
||||||
pack_id = regex.match(m_sourceUrl.toString()).captured(1);
|
pack_id = regex.match(m_sourceUrl.toString()).captured(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user