[英]Yup validation message with
I'm working with yup, the code I have so far is我正在与 yup 合作,到目前为止我拥有的代码是
word: yup
.string()
.required('word must be 5 characters.')
.matches(fiveCharacters, 'word must be 5 characters.'),
This works great, but when I try to add a non breaking space between 5 and characters这很好用,但是当我尝试在 5 到字符之间添加一个不间断空格时
5 characters
It shows up in the DOM as above instead of being an actual non breaking space.它如上所示出现在 DOM 中,而不是实际的非中断空间。 I tried googling around for escape options but couldn't find anything.
我尝试在谷歌上搜索逃生选项,但找不到任何东西。 Thanks
谢谢
I read somewhere that
我在某处读到
is not behaving like normal space.表现得不像正常空间。 try use this unix code
\
尝试使用此 unix 代码
\
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.