There was an error while loading. Please reload this page.
1 parent b498117 commit 40b5b54Copy full SHA for 40b5b54
packages/optimizely-sdk/lib/core/project_config/index.js
@@ -140,7 +140,7 @@ module.exports = {
140
var attribute = projectConfig.attributeKeyMap[attributeKey];
141
if (attribute) {
142
return attribute.id;
143
- } else if (attributeKey.startsWith(RESERVED_ATTRIBUTE_PREFIX)) {
+ } else if (attributeKey.indexOf(RESERVED_ATTRIBUTE_PREFIX) === 0) {
144
return attributeKey;
145
}
146
0 commit comments