mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-20 00:28:39 +02:00
- Bumped to version 3.1.0
- Enables Apple M1 Rosetta support - Fixes Apple Intel and M1 packaging issue(s) - Update build docs - Disable donation begging - Mining: New background gfx for the QML widget - Mining: fix segfault at wownerod right-click download - remove (old) OpenPGP code (find a new impl. when needed)
This commit is contained in:
@@ -439,6 +439,18 @@ int Utils::maxLength(const QVector<QString> &array) {
|
||||
return maxLength;
|
||||
}
|
||||
|
||||
unsigned int Utils::countAlphaNum(const QByteArray &line) {
|
||||
QRegularExpression re("([a-zA-Z0-9])");
|
||||
QRegularExpressionMatchIterator iterator = re.globalMatch(line);
|
||||
|
||||
int count = 0;
|
||||
while (iterator.hasNext()){
|
||||
QRegularExpressionMatch match = iterator.next();
|
||||
count += 1;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
bool Utils::versionOutdated(const QString ¤t_version, const QString &newest_version) {
|
||||
// True when major or minor version changed
|
||||
auto cver = current_version.split('.');
|
||||
|
||||
Reference in New Issue
Block a user