Fix quotation and handling of additional streamlink options (#2495)

This commit is contained in:
Emil Gedda
2021-03-06 19:56:36 +01:00
committed by GitHub
parent 1eb6aa64db
commit f53b0a9e0f
5 changed files with 117 additions and 15 deletions
+15
View File
@@ -0,0 +1,15 @@
#pragma once
#include <QStringList>
#include <QStringView>
namespace chatterino {
// Splits the string command into a list of tokens, and returns the list.
// Tokens with spaces can be surrounded by double quotes;
// three consecutive double quotes represent the quote character itself.
//
// Backported from QProcess 5.15
QStringList splitCommand(QStringView command);
} // namespace chatterino