unidecoder icon indicating copy to clipboard operation
unidecoder copied to clipboard

Fix yaml reserved words

Open giga811 opened this issue 7 years ago • 0 comments

yes, no are converted into true, false in yaml (until 1.1). (There was no documentation about this in 1.2)

Therefore these characters are converted into string "true", "false".

irb(main):022:0> "ኖᏃᓄᖺᘃのノ㋨ꆌ노".to_ascii
=> "falsefalsefalsefalsefalsefalsefalsefalsefalsefalse"
irb(main):027:0> '온'.to_ascii
=> "true"

I wrapped all the yes, no occurrences with brackets.

also created pr: https://github.com/rsl/stringex/pull/200

giga811 avatar Mar 06 '18 07:03 giga811