mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-02 06:36:07 -04:00
fix regex for placeholders, fix #402, add regression test
This commit is contained in:
parent
4cccf28b4d
commit
e3602e3c75
5 changed files with 59 additions and 13 deletions
|
@ -649,7 +649,8 @@ const Database* Entry::database() const
|
|||
QString Entry::resolveMultiplePlaceholders(const QString& str) const
|
||||
{
|
||||
QString result = str;
|
||||
QRegExp tmplRegEx("({.*})", Qt::CaseInsensitive, QRegExp::RegExp2);
|
||||
QRegExp tmplRegEx("(\\{.*\\})", Qt::CaseInsensitive, QRegExp::RegExp2);
|
||||
tmplRegEx.setMinimal(true);
|
||||
QStringList tmplList;
|
||||
int pos = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue