File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
examples/success-text/src Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ abbreviate s = T.filter (/= ' ') $ T.zipWith sanitize (" " <> s) (s <> " ")
1010
1111sanitize :: Char -> Char -> Char
1212sanitize a b
13- | (a == ' ' || a == ' - ' ) && isLetter b = toUpper b
13+ | not (isLetter a) && a /= ' \' ' && isLetter b = toUpper b
1414 | isLower a && isUpper b = b
1515 | otherwise = ' '
Original file line number Diff line number Diff line change 11name : acronym
2- version : 1.6 .0.10
2+ version : 1.7 .0.11
33
44dependencies :
55 - base
Original file line number Diff line number Diff line change @@ -62,4 +62,8 @@ cases = [ Case { description = "basic"
6262 , input = " Halley's Comet"
6363 , expected = " HC"
6464 }
65+ , Case { description = " underscore emphasis"
66+ , input = " The Road _Not_ Taken"
67+ , expected = " TRNT"
68+ }
6569 ]
You can’t perform that action at this time.
0 commit comments