From 68bab2c1cc272e99c94447afb93678e2b4d4bc72 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 12 Jul 2012 23:26:36 -0400 Subject: [PATCH] Use an exact match for the "Full Story" link text. --- src/LWN/XHTML.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/LWN/XHTML.hs b/src/LWN/XHTML.hs index a2f103f..5d3bbd1 100644 --- a/src/LWN/XHTML.hs +++ b/src/LWN/XHTML.hs @@ -16,7 +16,6 @@ module LWN.XHTML ( where import Text.HandsomeSoup (css) -import Text.Regex.Posix ((=~)) import Text.XML.HXT.Core ( (>>>), (/>), @@ -163,7 +162,7 @@ full_story_link = hasName "a" >>> ifA - (this /> hasText (=~ "Full Story")) + (this /> hasText (== "Full Story")) this none -- 2.43.2