Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

joi not empty string

var joi = require('joi')

// check if not empty string
const notEmptyString = joi.string().regex(/^[^s]+$/).required()
 
PREVIOUS NEXT
Tagged: #joi #empty #string
ADD COMMENT
Topic
Name
1+7 =