如何使错误消息包含在使用"模式"时的"非空"细化中
作者: st-clair-clarke创建于 2024年12月2日更新于 2024年12月2日
我有以下内容: NameStruct { first: nonempty(size( pattern( string(), nounRegex() as RegExp), 2, 20)) } 当 first 属性为空 ('') 时,会生成模式错误
内容来源: ianstormtaylor/superstruct
我有以下内容: NameStruct { first: nonempty(size( pattern( string(), nounRegex() as RegExp), 2, 20)) } 当 first 属性为空 ('') 时,会生成模式错误
内容来源: ianstormtaylor/superstruct