Skip to content

Commit

Permalink
micro optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 5, 2011
1 parent 1022b55 commit 024c649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Cookie.pm
Expand Up @@ -23,7 +23,7 @@ my $SEPARATOR_RE = qr/^\s*\;\s*/;
my $VALUE_RE = qr/
^
(
"(?:\\\\|\\"|[^"])+" # Quoted
"(?:[^"\\]++|\\.)*+" # Quoted
|
[^\;\,]+ # Unquoted
)
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Util.pm
Expand Up @@ -385,7 +385,7 @@ sub html_escape {
my $escaped = '';
for (1 .. length $_[0]) {

# Escape
# Escape entities
my $char = substr $_[0], 0, 1, '';
my $num = unpack 'U', $char;
my $named = $REVERSE_ENTITIES{$num};
Expand Down

0 comments on commit 024c649

Please sign in to comment.