1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2024-12-22 07:14:59 +01:00

update full_description.pl, recognize html block tags.

This commit is contained in:
tateisu 2022-12-04 10:15:00 +09:00
parent c58b5e5480
commit 2c74dff276

View File

@ -29,6 +29,7 @@ my $blockElements = join "|", qw(
# Attributes part inside HTML tag.
my $attrsRe = qr!(?:[^>/"]+|"[^"]*")*!;
my $blockElementsRe = qr!(?:$blockElements)!i;
my $trimElementsRe = qr!\s*(</?$blockElementsRe\b$attrsRe/?>)\s*!;