naparuba/shinken — pull request #934 by Squizou (2013-07-12 09:53:39+00:00)
Title: Fix forbidden __ANTI-VIRG__ in objects

Hello,

I am currently working on a branch (configuration-error-tolerance) to have a better support for errors in configuration files. While working on configuration analyzer I saw that "\;" pattern replacement forbids usage of "__ANTI-VIRG__" in objects attributes.

Here is a simple patch (with unit test) that use another way of handling \; replacement that would not use a reserved string for replacement. Instead I cut the string on ";", then parse pieces and join them together if "\" is the last used character (then adding the removed ; also).

Final result should be the same.