Yaml 解析器令人窒息
我有一个 yaml 片段
...
passwordregexp: '.{8},[0-9],[^0-9A-Za-z ],[A-Z],[a-z]'
passwordregexpfailmessage: |-
Contain at least 8 characters
Contain at least 1 Number
Contain at least 1 Special Character
Contain at least 1 Upper Case Letter
Contain at least 1 Lower Case Letter
passwordresetperiod: 1000
pdflatex_path: /usr/local/texlive/bin/x86_64-linux/pdflatex
...
我的 yaml 解析器因 Passwordregexfailmessage 而阻塞: 很明显它不喜欢语法,但不熟悉 yaml。 如何引用或构造此元素以使其可解析。
如果密码不符合passwordregexp 标准,则会显示此信息。
I have a yaml snippet
...
passwordregexp: '.{8},[0-9],[^0-9A-Za-z ],[A-Z],[a-z]'
passwordregexpfailmessage: |-
Contain at least 8 characters
Contain at least 1 Number
Contain at least 1 Special Character
Contain at least 1 Upper Case Letter
Contain at least 1 Lower Case Letter
passwordresetperiod: 1000
pdflatex_path: /usr/local/texlive/bin/x86_64-linux/pdflatex
...
My yaml parser chokes on Passwordregexfailmessage:
Its clear it doesnt like the syntax but am not familiar with yaml. How do you quote or structure this element to make it parsable.
This is to be displayed if a password does not meet the passwordregexp criteria.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该文档有效 YAML 1.1
解析器是什么? 它支持 YAML 1.1 吗?
The document is valid YAML 1.1
What is the parser ? Does it support YAML 1.1 ?