mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-06 05:57:37 +03:00
reuse referenceRegExp
This commit is contained in:
parent
a03e354504
commit
40851409fb
3 changed files with 10 additions and 3 deletions
|
@ -690,7 +690,7 @@ QString Entry::resolvePlaceholder(const QString& str) const
|
|||
// using format from http://keepass.info/help/base/fieldrefs.html at the time of writing,
|
||||
// but supporting lookups of standard fields and references by UUID only
|
||||
|
||||
QRegExp tmpRegExp("\\{REF:([TUPAN])@I:([^}]+)\\}", Qt::CaseInsensitive, QRegExp::RegExp2);
|
||||
QRegExp tmpRegExp = m_attributes->referenceRegExp();
|
||||
if (tmpRegExp.indexIn(result) != -1) {
|
||||
// cap(0) contains the whole reference
|
||||
// cap(1) contains which field is wanted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue