-
Notifications
You must be signed in to change notification settings - Fork 496
Filter emojis in RAT profile fields (EXPOSUREAPP-8108) #3597
Conversation
): CharSequence? { | ||
for (index in start until end) { | ||
val type = Character.getType(source[index]).toByte() | ||
if (type in listOf(SURROGATE, OTHER_SYMBOL)) return "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add some tests to it so that we can sure that it doesn't interfere with other alphabets, e.g. russian with cyrillic letters (@AlexanderAlferov may provide you some test data), danish with Ø.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests 0f801cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✌️✌️✌️✌️✌️✌️✌️✌️✌️️
Kudos, SonarCloud Quality Gate passed! |
🎥
device-2021-07-01-142812.mp4
Testing
1- Create a new RAT profile
2- Try to enter emojis
3- Enter name or address in DE, EN, TR , ... it should be as before