Improve the function name
This commit is contained in:
parent
57e25eaf39
commit
8f218307be
@ -536,10 +536,10 @@ genericNameFromLabel match label = do
|
|||||||
body = simpleBody res
|
body = simpleBody res
|
||||||
mlabel = parseHTML body
|
mlabel = parseHTML body
|
||||||
$// C.element "label"
|
$// C.element "label"
|
||||||
>=> contentMatches label
|
>=> isContentMatch label
|
||||||
mfor = mlabel >>= attribute "for"
|
mfor = mlabel >>= attribute "for"
|
||||||
|
|
||||||
contentMatches x c
|
isContentMatch x c
|
||||||
| x `match` T.concat (c $// content) = [c]
|
| x `match` T.concat (c $// content) = [c]
|
||||||
| otherwise = []
|
| otherwise = []
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user