mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01: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:
@@ -192,8 +192,10 @@ QString Entry::tags() const
|
|||||||
|
|
||||||
QStringList Entry::tagList() const
|
QStringList Entry::tagList() const
|
||||||
{
|
{
|
||||||
static QRegExp rx("(\\ |\\,|\\.|\\:|\\t|\\;)");
|
static QRegExp rx("(\\ |\\,|\\t|\\;)");
|
||||||
return tags().split(rx, QString::SkipEmptyParts);
|
auto taglist = tags().split(rx, QString::SkipEmptyParts);
|
||||||
|
std::sort(taglist.begin(), taglist.end());
|
||||||
|
return taglist;
|
||||||
}
|
}
|
||||||
|
|
||||||
const TimeInfo& Entry::timeInfo() const
|
const TimeInfo& Entry::timeInfo() const
|
||||||
|
|||||||
Reference in New Issue
Block a user