Skip to content

Commit

Permalink
we do not support partial monkey patching
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 11, 2015
1 parent 4f7e908 commit 997873f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Changes
@@ -1,6 +1,5 @@

6.03 2015-03-11
- Fixed Mojo::JSON to use the true and false functions for decoding. (Grinnz)

6.02 2015-03-09
- Added daemon attribute to Mojo::Server::Morbo.
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/JSON.pm
Expand Up @@ -198,10 +198,10 @@ sub _decode_value {
if /\G([-]?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?)/gc;

# True
return true() if /\Gtrue/gc;
return $TRUE if /\Gtrue/gc;

# False
return false() if /\Gfalse/gc;
return $FALSE if /\Gfalse/gc;

# Null
return undef if /\Gnull/gc;
Expand Down

0 comments on commit 997873f

Please sign in to comment.