diff options
author | Eric Wong <e@80x24.org> | 2014-04-15 06:18:43 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-15 06:18:43 +0000 |
commit | 27beeb0425cd92343d3d529e37f01de8982a1078 (patch) | |
tree | 576598f590a3809b22514a9cca53f808278adddd /t/view.t | |
parent | a9c1a93cfa88e19477e025ce4f451086e5d0213e (diff) | |
download | public-inbox-27beeb0425cd92343d3d529e37f01de8982a1078.tar.gz |
We may be breaking some parsers or allowing more breakage to slip through without quotes. We waste some bytes, though.
Diffstat (limited to 't/view.t')
-rw-r--r-- | t/view.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,7 +33,7 @@ EOF my $html = PublicInbox::View->as_html($s); # ghetto - like($html, qr/<a href="?hello%40/s, "MID link present"); + like($html, qr/<a href="hello%40/s, "MID link present"); like($html, qr/hello world\b/, "body present"); like($html, qr/> keep this inline/, "short quoted text is inline"); like($html, qr/<a name=[^>]+>> Long and wordy/, @@ -44,7 +44,7 @@ EOF my $short = PublicInbox::View->as_html($s, $pfx); like($short, qr/\n> keep this inline/, "short quoted text is inline"); - like($short, qr/<a href=\Q$pfx\E#[^>]+>Long and wordy/, + like($short, qr/<a href="\Q$pfx\E#[^>]+>Long and wordy/, "long quoted text is made into a link"); ok(length($short) < length($html), "short page is shorter"); } |