Skip to content

Commit

Permalink
QRegExp to QRegularExpression and updated README (#368)
Browse files Browse the repository at this point in the history
* QRegExp to QRegularExpression and updated README

One instance of QRegExp made the compiler crash when trying to build Akashi. Also, the README.md build instructions were outdated, new ones were provided to me by Salanto.

* Appease clang

---------

Co-authored-by: Salanto <[email protected]>
  • Loading branch information
HolyMan-17 and Salanto authored Jul 17, 2024
1 parent 3459486 commit d2b378b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Requires Qt >= 5.10, and Qt websockets

**Ubuntu 20.04/22.04** - Ubuntu 18.04 or older are not supported.
```
sudo apt install build-essential qt5-default libqt5websockets5-dev
sudo apt install build-essential qtbase5-dev qt5-qmake qttools5-dev qttools5-dev-tools libqt5websockets5-dev
git clone https://github.com/AttorneyOnline/akashi
cd akashi
qmake && make
qmake project-akashi.pro && make
```

# Contributors
Expand Down
3 changes: 2 additions & 1 deletion src/packet/packet_ms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "server.h"

#include <QDebug>
#include <QRegularExpression>

PacketMS::PacketMS(QStringList &contents) :
AOPacket(contents)
Expand Down Expand Up @@ -153,7 +154,7 @@ AOPacket *PacketMS::validateIcPacket(AOClient &client) const
}

if (client.m_is_disemvoweled) {
QString l_disemvoweled_message = l_incoming_msg.remove(QRegExp("[AEIOUaeiou]"));
QString l_disemvoweled_message = l_incoming_msg.remove(QRegularExpression("[AEIOUaeiou]"));
l_incoming_msg = l_disemvoweled_message;
}

Expand Down

0 comments on commit d2b378b

Please sign in to comment.