[Task-Response] Utopian-io - @utopian-bot a JavaScript mentions handler

Words
126
Reading
1 min
Listen
Play
8y

Repository

https://github.com/utopian-io/v2.api.utopian.io

GitHub Gist

https://gist.github.com/jinzocode/8794ed52050a8a030a3b933d67a8f1e9

Utopian-Task

https://steemit.com/utopian-io/@utopian.tasks/js-developers-and-regex-experts-wanted-javascript-coding-task

About Task

Solving request made by utopian.tasks@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
  • Mixed weight handling
  • Some parts are missing
  • Unrelated text is contained

GitHub Account

https://github.com/jinzocode

Revisions

https://gist.github.com/jinzocode/6618dbb56f3ee74fd19517d6a8cc0ef0/revisions

[Task-Response] Utopian-io - @utopian-bot a JavaScript mentions ha... | Ecency