Repository
https://github.com/utopian-io/v2.api.utopian.io
GitHub Gist
https://gist.github.com/jinzocode/8794ed52050a8a030a3b933d67a8f1e9
Utopian-Task
About Task
Solving request made by for a JavaScript script to handle response to user input for mentions
Create a GitHub gist with a Javascript script that can perform the following:
Receive text as input
Parse the text and compare it with a set of regular expressions
Return a different object or an error result based on the scenarios
New Features
- Beneficiaries handler
- Regular expression while handling every input
- Possible scenarios as examples.
- Check unique usernames
- Usernames validator
Error handling
- More than 8 usernames input
- More than 100% weight
- Usernames duplicates
- Using exact format as mentioned in utopian-task request
- Mixed weight handling
- Some parts are missing
- Unrelated text is contained
GitHub Account
Revisions
https://gist.github.com/jinzocode/6618dbb56f3ee74fd19517d6a8cc0ef0/revisions