Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[2.6][T3] Perform validation on the `website` field of a business registration/update

See original GitHub issue

When creating a business registration transaction, it’s currently possible to use any website value, as long as it’s a string of at least 4 characters. Similarly to the peer validation, this field should contain additional validation to ensure that a user inputs a valid URL.

Expected Behavior
An error should be returned when a user tries to create a business registration transaction with an invalid website value.

Current Behavior
The transaction is created as long as the website value is a string of 4 characters.

Possible Solution
Validate the website value against a RegEx that verifies that it is a valid URL.

There are many available expressions to do this, check out this reference for example:

Your Environment

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

Lemiicommented, Oct 29, 2019

Yes, certainly

ghostcommented, Oct 29, 2019

This issue has been closed. If you wish to re-open it please provide additional information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[2.6][T3] High incidence of forks on devnet (due to postBlock ...
There has been a higher incidence of forks on devnet recently, all of which have been caused by delayed blocks on the network...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found