JOI validation against regex is passing even for unmatched strings

后端 未结 0 431
忘掉有多难
忘掉有多难 2021-01-17 17:11

I\'m using joi as descriped in the code below

import joi from \'joi\';

const STRING_ENGLISH_ARABIC_125 = joi
  .alternatives([
    joi.string().pattern(/^[\\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题