Skip to content

Commit 40b5b54

Browse files
committed
moving to use indexof
1 parent b498117 commit 40b5b54

File tree

1 file changed

+1
-1
lines changed
  • packages/optimizely-sdk/lib/core/project_config

1 file changed

+1
-1
lines changed

packages/optimizely-sdk/lib/core/project_config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ module.exports = {
140140
var attribute = projectConfig.attributeKeyMap[attributeKey];
141141
if (attribute) {
142142
return attribute.id;
143-
} else if (attributeKey.startsWith(RESERVED_ATTRIBUTE_PREFIX)) {
143+
} else if (attributeKey.indexOf(RESERVED_ATTRIBUTE_PREFIX) === 0) {
144144
return attributeKey;
145145
}
146146

0 commit comments

Comments
 (0)