In a config file, I have a key to which I wish to assign a URL. The problem is that YAML interprets : and - characters as either creating mappings or lists, so it has a problem with the line
url: http://www.example-site.com/
(both because of the colon following http and the hyphen in the middle)
Is there an explicit way to escape ':' and '-' ? Or would it work to just put the whole thing in single quotes and call it a day?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…