[2.6][T3] Perform validation on the `website` field of a business registration/updateSee 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.
An error should be returned when a user tries to create a business registration transaction with an invalid
The transaction is created as long as the
website value is a string of 4 characters.
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
- @arkecosystem/crypto: 2.6.0-next.2
- Created 4 years ago
- Comments:15 (12 by maintainers)