projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
f7db8e3
)
adding quotes around arbitrary stuff isn't safe, just stringify
Jesse Luehrs [Fri, 17 Jun 2011 22:56:38 +0000 (17:56 -0500)]
lib/Moose/Util/TypeConstraints/Builtins.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Util/TypeConstraints/Builtins.pm
b/lib/Moose/Util/TypeConstraints/Builtins.pm
index
a19c90a
..
8aed469
100644
(file)
--- a/
lib/Moose/Util/TypeConstraints/Builtins.pm
+++ b/
lib/Moose/Util/TypeConstraints/Builtins.pm
@@
-48,8
+48,8
@@
sub define_builtins {
. ' && ('
. '!defined(' . $_[1] . ') '
. '|| ' . $_[1] . ' eq "" '
- . '|| "' . $_[1] . '" eq "1" '
- . '|| "' . $_[1] . '" eq "0"'
+ . '|| (' . $_[1] . '."") eq "1" '
+ . '|| (' . $_[1] . '."") eq "0"'
. ')'
};