0
0
mirror of https://github.com/keepassxreboot/keepassxc.git synced 2024-09-20 04:12:15 +02:00

Allow colon in tags and sort alphabetically

* Fix #7489 - allow colon and period in tag names
* Fix #7490 - sort tags alphabetically
This commit is contained in:
Jonathan White 2022-03-05 12:00:11 -05:00
parent 4cc5850c86
commit cf5429a39b

View File

@ -192,8 +192,10 @@ QString Entry::tags() const
QStringList Entry::tagList() const
{
static QRegExp rx("(\\ |\\,|\\.|\\:|\\t|\\;)");
return tags().split(rx, QString::SkipEmptyParts);
static QRegExp rx("(\\ |\\,|\\t|\\;)");
auto taglist = tags().split(rx, QString::SkipEmptyParts);
std::sort(taglist.begin(), taglist.end());
return taglist;
}
const TimeInfo& Entry::timeInfo() const