fix for issue #45

This commit is contained in:
Brad Rydzewski 2019-05-29 18:33:54 -07:00
parent 60df550815
commit 3ea0d8d8ec
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Fixed ### Fixed
- Support for yaml merge keys, by [@bradrydzewski](https://github.com/bradrydzewski). - Support for yaml merge keys, by [@bradrydzewski](https://github.com/bradrydzewski).
- Escape values with colons, by [@bradrydzewski](https://github.com/bradrydzewski). Issue [#45](https://github.com/drone/drone-yaml/issues/45).
## [1.0.9] - 2019-05-20 ## [1.0.9] - 2019-05-20
### Added ### Added

View File

@ -65,7 +65,7 @@ func isZero(v interface{}) bool {
func isQuoted(b rune) bool { func isQuoted(b rune) bool {
switch b { switch b {
case '#', ',', '[', ']', '{', '}', '&', '*', '!', '|', '>', '\'', '"', '%', '@', '`': case ':', '#', ',', '[', ']', '{', '}', '&', '*', '!', '|', '>', '\'', '"', '%', '@', '`':
return true return true
case '\a', '\b', '\f', '\n', '\r', '\t', '\v': case '\a', '\b', '\f', '\n', '\r', '\t', '\v':
return true return true