Fix escaping of double quotes
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 4 Oct 2024 13:36:43 +0000 (15:36 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 4 Oct 2024 14:08:28 +0000 (16:08 +0200)
commit149c92394334d3cb0c50a0700567e55d63e9d0e8
tree0803cfde464969a55bf4ebbcdca840207a8d9eb4
parentce076b05be7ae9f3ba5ec707904bf8f1d758ca13
Fix escaping of double quotes

When fixing the regular expressions for cnfvar parsing before, an old bug
came to light which did the de-escaping of double quotes in cnfvar values
too early (before regexes checked the input). Change that to give the
regexp parsers correctly escaped quotes and de-escape them only after the
initial parsing.

Add unittests to check this behaviour
src/cnfvar/binary.py
src/cnfvar/string.py
test/cnfvar/test_string.py