Conversation
|
Adding support for regexes to validate identities before uploading to CleverTap. This will avoid cases where duplicate profiles are created because the format of the identity field is different, for eg: if someone forgets to add the + sign while using phone numbers as identity. Now, such profiles will be ignored. The flag where the regex is to be supplied is "identityRegex". Not including the identityRegex flag will not validate the identity field against any regex. The profiles will simply be processed and uploaded. Sample usage - uploading only those profiles which have identities in the +91XXXXXXXXXX format: |
|
Updated executables |
| if(pattern == "") { | ||
| return true | ||
| } | ||
| re := regexp.MustCompile(pattern) |
There was a problem hiding this comment.
regexp.MustCompile(pattern)
Can this be done once in some global context, so you don't need to compile pattern for every call to isIdentityValid
No description provided.