Skip to content

Commit

Permalink
fix: allow only '-[ \t]' to indicate a list
Browse files Browse the repository at this point in the history
  • Loading branch information
dod38fr committed Oct 1, 2021
1 parent 8a82dbd commit 11793db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/YAML/Tiny.pm
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ sub _load_hash {
$hash->{$key} = undef;
return 1;
}
if ( $lines->[0] =~ /^(\s*)-(?:\s|$)/ ) {
if ( $lines->[0] =~ /^(\s*)-(?:[ \t]|$)/ ) {
$hash->{$key} = [];
$self->_load_array(
$hash->{$key}, [ @$indent, length($1) ], $lines
Expand Down

0 comments on commit 11793db

Please sign in to comment.