[英]How to validate an Ethereum address using Joi
you have to use .extend
method of joi for creating custom validation. 您必须使用.extend
方法创建自定义验证。 you can have regex based checking in .extend
method. 您可以在.extend
方法中进行基于正则表达式的检查。 reference https://github.com/hapijs/joi/blob/v14.0.1/API.md#extendextension 参考https://github.com/hapijs/joi/blob/v14.0.1/API.md#extendextension
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.