[Bps-public-commit] Config-GitLike branch, master, updated. 1.00-17-g8f2633b

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Aug 14 08:18:43 EDT 2009


The branch, master has been updated
       via  8f2633bfaf1c18b01320368ab4076562cac95634 (commit)
      from  07df9815215dab2abdd157021425653c906eda8b (commit)

Summary of changes:
 lib/Config/GitLike.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 8f2633bfaf1c18b01320368ab4076562cac95634
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Aug 14 20:18:32 2009 +0800

    fix bug: escaped \ in value should be reverted back too

diff --git a/lib/Config/GitLike.pm b/lib/Config/GitLike.pm
index f669005..cf768d5 100644
--- a/lib/Config/GitLike.pm
+++ b/lib/Config/GitLike.pm
@@ -284,6 +284,10 @@ sub parse_content {
                 elsif ($c =~ s/\A\\\r?\n//im) {
                     next;
                 }
+                # escaped backslash characters is translated to actual \
+                elsif ($c =~ s/\A\\\\//im) {
+                    $value .= '\\';
+                }
                 # escaped quote characters are part of the value
                 elsif ($c =~ s/\A\\(['"])//im) {
                     $value .= $1;

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list