mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 16:35:40 -04:00
Enable https and better combining character semantics.
This commit is contained in:
parent
7e175c84ea
commit
fa8607d29f
2 changed files with 4 additions and 2 deletions
|
@ -21,7 +21,7 @@ sub {
|
|||
my $ua = LWP::UserAgent->new( agent => "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36" );
|
||||
my $url;
|
||||
|
||||
if( $said->{body} =~ s{(http://\S+)\s*}{} ) {
|
||||
if( $said->{body} =~ s{(https?://\S+)\s*}{} ) {
|
||||
$url = $1;
|
||||
}
|
||||
elsif( $said->{body} =~ s/(\S+)\s*// ) {
|
||||
|
|
|
@ -32,7 +32,9 @@ sub unip {
|
|||
push @err, sprintf "U+%X (%s): no match found", $_, $utf8;
|
||||
next;
|
||||
}
|
||||
push @out, "U+$x->{code} ($utf8): $x->{name} [$chr]";
|
||||
my $comb = "";
|
||||
$comb = " " if $x->{name} =~ /^COMBINING /;
|
||||
push @out, "U+$x->{code} ($utf8): $x->{name} [$comb$chr]";
|
||||
}
|
||||
|
||||
\@err, \@out
|
||||
|
|
Loading…
Add table
Reference in a new issue