Automattic / Automattic/wp-telegram-bot

Handle improperly formatted URLs

Open
#16 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17
Forks
6
PR merge metrics
No merged PRs in 30d

Description

** What I expected **
To be able to type `@WordPressDotComBot follow newestdomainsiteintheworld.com` and follow the blog

** What actually happened **
Nothing, not even an error. Instead I need to include the `http[s]://` on the front of the URL.

The bot should be able to more accurately detect a URL, and also provide an error response when a non-URL argument is given

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the follow command's URL parsing and argument validation, then reproduce the bare-domain example and a non-URL argument. Done means a valid domain such as newestdomainsiteintheworld.com is accepted without http[s]:// and an invalid argument receives an error response.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.