Skip to content

Commit

Permalink
Search for any carriage returns on Windows instead
Browse files Browse the repository at this point in the history
Guhhhhhhhhhhh
  • Loading branch information
SeongGino authored Mar 26, 2024
1 parent 2400d54 commit bbe5516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qhookermain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void qhookerMain::GameSearching(QString input)
{
// Split the output in case of connecting mid-way.
#ifdef Q_OS_WIN
buffer = input.split("\\r", Qt::SkipEmptyParts);
buffer = input.split(QRegExp("[\r\n]"), Qt::SkipEmptyParts);
#else
buffer = input.split('\r', Qt::SkipEmptyParts);
#endif // Q_OS_WIN
Expand Down

0 comments on commit bbe5516

Please sign in to comment.