I am trying to configure bugsnag in my react-native app and I am currently stuck with specifying redacted keys. The following guide mentions that I can use regular expressions:
https://docs.bugsnag.com/platforms/ios/configuration-options/#redactedkeys
But the example there only specified strings:
BugsnagConfiguration *config = [BugsnagConfiguration loadConfig];
config.redactedKeys = [NSSet setWithArray:@[@"password", @"credit_card_number"]];
[Bugsnag startWithConfiguration:config];
However, I have no knowledge of objective-c. I have the following two regular expressions that I would like to use:
[/\w*password\w*/i, /\w*sessiontoken\w*/i]
How can I add them to bugsnag's configuration?
Here is how I have done it: