import: beautify-description: Fix ". ." case.
* guix/import/utils.scm (beautify-description): Ensure the matched string pre is long enough not to fail. Change-Id: I3172d9a41350b98222cd9ab758487485f26650b3 Signed-off-by: Ludovic Courtès <ludo@gnu.org>master
parent
44c8ce8334
commit
5f03cfacd8
|
@ -380,9 +380,10 @@ LENGTH characters."
|
||||||
(abbrevs '("Dr" "Mr" "Mrs"
|
(abbrevs '("Dr" "Mr" "Mrs"
|
||||||
"Ms" "Prof" "vs"
|
"Ms" "Prof" "vs"
|
||||||
"e.g")))
|
"e.g")))
|
||||||
(if (or (any (cut string-suffix? <> pre) abbrevs)
|
(if (and (> (string-length pre) 0)
|
||||||
|
(or (any (cut string-suffix? <> pre) abbrevs)
|
||||||
(char-upper-case?
|
(char-upper-case?
|
||||||
(string-ref pre (1- (string-length pre)))))
|
(string-ref pre (1- (string-length pre))))))
|
||||||
". "
|
". "
|
||||||
". ")))
|
". ")))
|
||||||
'post)
|
'post)
|
||||||
|
|
Reference in New Issue