Unicode Matcher in Ruby
In this guide you will learn how to convert unicode characters and ignore cases to match usernames.
Guide Tasks
- Read Tutorial
- Complete the Exercise
Summary
Build out a class that can be used to convert unicode characters and ignore cases to match usernames.
Exercise Description
"Define a class that will convert unicode characters and ignore cases to match usernames and return false if usernames do not match."
Example Data
'supplied_username_one = "myusernᵃme".username_cleaner supplied_username_two = "myusername".username_cleaner database_username = "MYUSERNAME" ' -> expect(supplied_username_one == database_username).to eq(true) expect(supplied_username_two == database_username).to eq(true)
Real World Usage
It can be necessary to clean up given data before or as we compare it to out database to make sure we get the desired results returned to us.