Unicode support for event names #4523
Unanswered
zombie6888
asked this question in
Ideas
Replies: 2 comments
|
Sure! If you can reference the upstream documentation that specifies exactly what characters are acceptable (I expect the unicode range, yes?) then implement a regex that handles the range the upstream doc specifies, we can merge it. There is a similar PR in progress now so you can see similar work #4522 |
0 replies
|
I found only this docs: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello, we are using firebase analytics, but library doesn't support different languages for event names. Current validation fail with unicode characters because of this regular expression /^[a-zA-Z0-9_]+$/;
https://github.com/invertase/react-native-firebase/blob/master/packages/app/lib/common/validate.js#L20
In our project we added hack to avoid checking:
RegExp.prototype.test = () => retun trueIt removes validation before event sending and it works! I can see event names on russian language
in firebase console.
So, is it possible to improve validation for library to support unicode characters?
All reactions