Accept both upper and lowercase 'S' for custom attribute

This commit is contained in:
bigjim80 2024-10-30 09:08:20 +01:00 committed by GitHub
parent 2738a72b43
commit e28a1b5203
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1372,7 +1372,7 @@ Entry::PlaceholderType Entry::placeholderType(const QString& placeholder) const
if (!placeholder.startsWith(QLatin1Char('{')) || !placeholder.endsWith(QLatin1Char('}'))) { if (!placeholder.startsWith(QLatin1Char('{')) || !placeholder.endsWith(QLatin1Char('}'))) {
return PlaceholderType::NotPlaceholder; return PlaceholderType::NotPlaceholder;
} }
if (placeholder.startsWith(QLatin1Literal("{S:"))) { if (placeholder.startsWith(QLatin1Literal("{S:")) || placeholder.startsWith(QLatin1Literal("{s:"))) {
return PlaceholderType::CustomAttribute; return PlaceholderType::CustomAttribute;
} }
if (placeholder.startsWith(QLatin1Literal("{REF:"))) { if (placeholder.startsWith(QLatin1Literal("{REF:"))) {