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