feat: update version to 2.1.1 and enhance property normalization in ExpiryIndicator functionality
This commit is contained in:
@@ -121,8 +121,10 @@
|
||||
|
||||
function propertyValue(payload, key) {
|
||||
var properties = payload && payload.d ? payload.d : (payload || {});
|
||||
var expected = String(key || '').replace(/_x002e_/gi, '.').toLowerCase();
|
||||
for (var name in properties) {
|
||||
if (Object.prototype.hasOwnProperty.call(properties, name) && name.toLowerCase() === key.toLowerCase()) {
|
||||
var normalizedName = String(name || '').replace(/_x002e_/gi, '.').toLowerCase();
|
||||
if (Object.prototype.hasOwnProperty.call(properties, name) && normalizedName === expected) {
|
||||
try { return typeof properties[name] === 'string' ? JSON.parse(properties[name]) : properties[name]; }
|
||||
catch (ignore) { return null; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user