Skip to content

Commit

Permalink
Fix regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s authored and audreyt committed Oct 15, 2010
1 parent c873e50 commit 650ae88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/App/I18N/Command/Auto.pm
Expand Up @@ -105,8 +105,8 @@ sub run {

my $from_lang_s = $from_lang;
my $to_lang_s = $to_lang;
($from_lang_s) = ( $from_lang =~ m{^([a-z]+)(_\w+)} );
($to_lang_s) = ( $to_lang =~ m{^([a-z]+)(_\w+)} );
($from_lang_s) = ( $from_lang =~ m{^([a-z]+)(_\w+)?} );
($to_lang_s) = ( $to_lang =~ m{^([a-z]+)(_\w+)?} );

REST::Google::Translate->http_referer('http://google.com');

Expand Down

0 comments on commit 650ae88

Please sign in to comment.