[Bps-public-commit] Config-GitLike branch, master, updated. 1.05-3-g74cd4d2

Alex Vandiver alexmv at bestpractical.com
Mon Aug 29 12:49:15 EDT 2011


The branch, master has been updated
       via  74cd4d2e15dbcead22e28288e14187cea44882ac (commit)
      from  8f7fa2f1250c9981ab187b09c56fda9e3abb5233 (commit)

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

- Log -----------------------------------------------------------------
commit 74cd4d2e15dbcead22e28288e14187cea44882ac
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Aug 29 12:04:37 2011 -0400

    Allow quoted strings to adjoin directly to unquoted strings
    
    This resolves a bug wherein:
    
        [foo]
            bar = "foo"bar"baz"
    
    ...was incorrectly parsed as << foo.bar=foobar"baz" >> and not the
    correct << foo.bar=foobarbaz >>.  Make the fall-through value not
    consume quotes when consuming a token, as it should be instead parsed as
    the start of a quoted-value.  This bug was only evident when the quoted
    value abutted the unquoted value with no separating space.

diff --git a/lib/Config/GitLike.pm b/lib/Config/GitLike.pm
index c19911e..8a7195b 100644
--- a/lib/Config/GitLike.pm
+++ b/lib/Config/GitLike.pm
@@ -333,7 +333,7 @@ sub parse_content {
                     $value .= $v;
                 }
                 # valid value (no escape codes)
-                elsif ($c =~ s/\A([^\t \\\n]+)//im) {
+                elsif ($c =~ s/\A([^\t \\\n"]+)//im) {
                     $value .= $1;
                 # unparseable
                 }

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



More information about the Bps-public-commit mailing list