Validation Utils
Useful validation methods for checking user input.
Properties
Regular expression that validates an email address. Emails passing this very simple regex may still be rejected on the Braze server. We want to err on the side of letting things through.
ISO 4217 currency codes accepted by the Braze SDK.
Functions
Validates an email address. Note that passing this stage of validation allows an email address to be sent to Braze server, which may perform additional validation.
Validates a user's LINE ID. The ID must be 33 characters or less.
Validates the event name for the custom event. Invalid event names are null or in the blocklist.
Validates the log purchase event parameters.
Performs basic validation on the input phone number. Note that passing this stage of validation allows a phone number to be sent to Braze server, which may perform additional validation.
Validates the campaign id and page id for the push story click. Neither can be null or blank.