change: better regex for removing 'The' when sorting mods
Teh :| Co-authored-by: timoreo22 <timo.oreo34@gmail.com>
This commit is contained in:
parent
e25cdd9d12
commit
5f951e8f21
@ -13,7 +13,7 @@ namespace {
|
|||||||
// FIXME: wasteful
|
// FIXME: wasteful
|
||||||
void RemoveThePrefix(QString& string)
|
void RemoveThePrefix(QString& string)
|
||||||
{
|
{
|
||||||
QRegularExpression regex(QStringLiteral("^(([Tt][Hh][eE])|([Tt][eE][Hh])) +"));
|
QRegularExpression regex(QStringLiteral("^(?:the|teh) +"), QRegularExpression::CaseInsensitiveOption);
|
||||||
string.remove(regex);
|
string.remove(regex);
|
||||||
string = string.trimmed();
|
string = string.trimmed();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user