Solving request made by @utopian.tasks 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