Skip to content

Commit

Permalink
made inline base64 files a little prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 29, 2010
1 parent 3a12919 commit 0d81f76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Command.pm
Expand Up @@ -121,7 +121,7 @@ sub get_all_data {
# Base 64
$content = b($content)->b64_decode->to_string
if $name =~ s/\s+base64$//;
if $name =~ s/\s*\(\s*base64\s*\)$//;
$all->{$name} = $content;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Lite.pm
Expand Up @@ -633,7 +633,7 @@ Static files will be automatically served from the C<DATA> section
@@ something.js
alert('hello!');
@@ test.txt base64
@@ test.txt (base64)
dGVzdCAxMjMKbGFsYWxh
% mkdir public
Expand Down
2 changes: 1 addition & 1 deletion t/mojolicious/lite_app.t
Expand Up @@ -1184,7 +1184,7 @@ text!
@@ template.txt.epl
<div id="foo">Redirect works!</div>
@@ static2.txt base64
@@ static2.txt (base64)
dGVzdCAxMjMKbGFsYWxh
@@ with_header_condition.html.epl
Expand Down

0 comments on commit 0d81f76

Please sign in to comment.