package Catalyst::Action::Serialize::JSONP;
+
use Moose;
use namespace::autoclean;
extends 'Catalyst::Action::Serialize::JSON';
-our $VERSION = '0.89';
-$VERSION = eval $VERSION;
-
after 'execute' => sub {
my $self = shift;
my ($controller, $c) = @_;
my $callback_value = $c->req->param($callback_key);
if ($callback_value) {
- if ($callback_value =~ /^\w+$/) {
+ if ($callback_value =~ /^[.\w]+$/) {
$c->res->content_type('text/javascript');
$c->res->output($callback_value.'('.$c->res->output().');');
} else {