[2.6][T3] Perform validation on the `website` field of a business registration/update
See original GitHub issueWhen 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: https://mathiasbynens.be/demo/url-regex
Your Environment
- nodejs
- @arkecosystem/crypto: 2.6.0-next.2
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (12 by maintainers)
Top GitHub Comments
Yes, certainly
This issue has been closed. If you wish to re-open it please provide additional information.