Skip to content

Commit

Permalink
fix string escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaldrip committed Jun 28, 2019
1 parent 66f2ee0 commit 37c0333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shard.yml
@@ -1,5 +1,5 @@
name: psykube
version: 2.15.0
version: 2.16.0
crystal: 0.26.0

authors:
Expand Down
2 changes: 1 addition & 1 deletion src/psykube/actor.cr
Expand Up @@ -93,7 +93,7 @@ class Psykube::Actor

private def escaped(hash : StringMap)
hash.each_with_object(StringMap.new) do |(k, v), h|
h[k] = v.nil? || v.empty? ? "null" : [v].to_yaml.lines[1].lchop("-").strip
h[k] = v.nil? || v.empty? ? "null" : [v].to_yaml.lines[1].lchop("-").sub(/"(.*)"/, "\\1").strip
end
end

Expand Down

0 comments on commit 37c0333

Please sign in to comment.