Add a comment to explain what is the purpose of the block of code.

master
Pattarawat Chormai 2014-09-10 23:57:50 +07:00
parent 24dee5c4e8
commit 55e98f1f5e
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ sub _make_a_result {
my $decimal_code = hex $obj->{code};
my $symbol = $obj->{symbol};
# If the code is a emoji icon, we'll serve it as a image instead
# because it's rendered properly on Chrome.
if( EMOJI_LOWER_BOUND <= $decimal_code && $decimal_code <= EMOJI_UPPER_BOUND ) {
( my $image_name = lc $obj->{name} ) =~ s/\s/_/g;
( my $image_path = EMOJI_IMAGE_PATH ) =~ s/<PATH>/$image_name/;