Skip to content

Commit 4f51f4a

Browse files
authored
update replace to replaceAll (#30940)
1 parent 97c705d commit 4f51f4a

File tree

1 file changed

+1
-1
lines changed
  • content/en/real_user_monitoring/feature_flag_tracking

1 file changed

+1
-1
lines changed

content/en/real_user_monitoring/feature_flag_tracking/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ You can start collecting feature flag data with [custom feature flag management
124124
**Note**: The following special characters are not supported for Feature Flag Tracking: `.`, `:`, `+`, `-`, `=`, `&&`, `||`, `>`, `<`, `!`, `(`, `)`, `{`, `}`, `[`, `]`, `^`, `"`, ``, ``, `~`, `*`, `?`, `\`. Datadog recommends avoiding these characters when possible in your feature flag names. If you are required to use one of these characters, replace the character before sending the data to Datadog. For example:
125125

126126
```javascript
127-
datadogRum.addFeatureFlagEvaluation(key.replace(':', '_'), value);
127+
datadogRum.addFeatureFlagEvaluation(key.replaceAll(':', '_'), value);
128128
```
129129

130130
</div>

0 commit comments

Comments
 (0)