Add support for prefix in customapi

This commit is contained in:
Michael Telatynski 2024-01-18 20:07:00 +00:00 committed by GitHub
parent 7f621ed518
commit 60ee3c22a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,6 +90,11 @@ function formatValue(t, mapping, rawValue) {
// nothing
}
// Apply fixed prefix.
const prefix = mapping?.prefix;
if (prefix) {
value = `${prefix}${value}`;
}
// Apply fixed suffix.
const suffix = mapping?.suffix;
if (suffix) {