fix: support completing emotes starting with : (#5603)
This commit is contained in:
@@ -125,7 +125,7 @@ namespace helpers::detail {
|
||||
} // namespace helpers::detail
|
||||
using namespace helpers::detail;
|
||||
|
||||
bool startsWithOrContains(const QString &str1, const QString &str2,
|
||||
bool startsWithOrContains(QStringView str1, QStringView str2,
|
||||
Qt::CaseSensitivity caseSensitivity, bool startsWith)
|
||||
{
|
||||
if (startsWith)
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace helpers::detail {
|
||||
* @brief startsWithOrContains is a wrapper for checking
|
||||
* whether str1 starts with or contains str2 within itself
|
||||
**/
|
||||
bool startsWithOrContains(const QString &str1, const QString &str2,
|
||||
bool startsWithOrContains(QStringView str1, QStringView str2,
|
||||
Qt::CaseSensitivity caseSensitivity, bool startsWith);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user