Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Filter emojis in RAT profile fields (EXPOSUREAPP-8108) #3597

Merged
merged 7 commits into from
Jul 2, 2021

Conversation

mtwalli
Copy link
Contributor

@mtwalli mtwalli commented Jul 1, 2021

🎥

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

@mtwalli mtwalli added bug Something isn't working maintainers Tag pull requests created by maintainers labels Jul 1, 2021
@mtwalli mtwalli added this to the 2.5.0 milestone Jul 1, 2021
@mtwalli mtwalli requested a review from a team July 1, 2021 12:34
): CharSequence? {
for (index in start until end) {
val type = Character.getType(source[index]).toByte()
if (type in listOf(SURROGATE, OTHER_SYMBOL)) return ""
Copy link
Contributor

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 Ø.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests 0f801cc

@harambasicluka harambasicluka added the prio PRs to review first. label Jul 2, 2021
@jurajkusnier jurajkusnier self-assigned this Jul 2, 2021
Copy link
Member

@d4rken d4rken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@d4rken d4rken self-assigned this Jul 2, 2021
Copy link
Contributor

@jurajkusnier jurajkusnier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✌️✌️✌️✌️✌️✌️✌️✌️✌️️

@sonarcloud
Copy link

sonarcloud bot commented Jul 2, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@d4rken d4rken merged commit 61b8e18 into release/2.5.x Jul 2, 2021
@d4rken d4rken deleted the fix/8108-no-emojis branch July 2, 2021 09:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working maintainers Tag pull requests created by maintainers prio PRs to review first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants