Skip Menu |

This queue is for tickets about the YAML-Tiny CPAN distribution.

Report information
The Basics
Id: 26416
Status: resolved
Priority: 0/
Queue: YAML-Tiny

People
Owner: Nobody in particular
Requestors: john [...] nixnuts.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Dies on empty comments
YAML::Tiny dies when it hits a comment line with no text/spaces following the #. The other YAML implementations seem to accept '#' by itself on a line without complaints. Trivial patch attached.
Subject: tiny-comments.patch
--- Tiny.pm.orig 2007-04-16 15:34:39.000000000 -0500 +++ Tiny.pm 2007-04-16 15:35:29.000000000 -0500 @@ -86,7 +86,7 @@ } # Split the file into lines - my @lines = grep { ! /^\s*(?:\#.+)?$/ } + my @lines = grep { ! /^\s*(?:\#.*)?$/ } split /(?:\015{1,2}\012|\015|\012)/, shift; # A nibbling parser
Adding a test case to confirm this got fixed a few versions back