Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix regex to use anchors with all alternations.

  • Loading branch information...
commit 6dec13b273ff964784adff331f62dcd62e1fc3c0 1 parent b1d7c4d
@patch patch authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/YAML/Dumper.pm
View
2  lib/YAML/Dumper.pm
@@ -124,7 +124,7 @@ method dump_alias($node) {
}
method dump_string($node) {
- return $.dump_single($node) if $node ~~ /^ true | false | null | '~' $/;
+ return $.dump_single($node) if $node ~~ /^ [ true | false | null | '~' ] $/;
return $.dump_double($node) if $node ~~ /^ ' ' /;
return $.dump_double($node) if $node ~~ / ' ' $/;
return $.dump_double($node) if $node ~~ / \n | '"' /;
Please sign in to comment.
Something went wrong with that request. Please try again.