Replace require() with import

This commit is contained in:
freearhey 2024-12-05 14:25:53 +03:00
parent 67cc28a408
commit ea14a63978
16 changed files with 93 additions and 74 deletions

View file

@ -1,15 +0,0 @@
const Joi = require('joi')
module.exports = {
name: Joi.string()
.regex(/^[\sA-Z\u00C0-\u00FF().,-]+$/i)
.required(),
code: Joi.string()
.regex(/^[A-Z]{2,7}$/)
.required(),
countries: Joi.array().items(
Joi.string()
.regex(/^[A-Z]{2}$/)
.required()
)
}