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

in #utopian-io6 years ago (edited)

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

Sort:  

Thanks for the contribution!

We have decided another contribution was the best solution to the task request, but you will still get a reward for your hard work!

Thanks for participating!


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Hey @jinzo
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.16
TRX 0.16
JST 0.028
BTC 68814.11
ETH 2404.54
USDT 1.00
SBD 2.36