From dab818536443b65df922cb4307e78195f79155d6 Mon Sep 17 00:00:00 2001 From: Fabien Chouteau Date: Wed, 4 Nov 2020 16:43:44 +0100 Subject: [PATCH] Alire.Utils.Yaml: fix string escape (#604) We use double-quote strings so single-quotes should not be escaped. --- src/alire/alire-utils-yaml.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alire/alire-utils-yaml.adb b/src/alire/alire-utils-yaml.adb index 8fd65917..82e9caa5 100644 --- a/src/alire/alire-utils-yaml.adb +++ b/src/alire/alire-utils-yaml.adb @@ -74,7 +74,7 @@ package body Alire.Utils.YAML is case C is when ASCII.LF => Escape ('l'); when ASCII.CR => Escape ('c'); - when '"' | ''' | '\' => Escape (C); + when '"' | '\' => Escape (C); when ASCII.HT => Escape ('t'); when ASCII.NUL .. ASCII.BS | ASCII.VT .. ASCII.FF -- 2.39.5