Skip to content

Commit 4a5568e

Browse files
committed
tweaking the text cleaner to be more lenient about acronyms
1 parent 2c6cd00 commit 4a5568e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/docsplit/text_cleaner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class TextCleaner
2424
REPEAT = /([^0-9])\1{2,}/
2525
UPPER = /[A-Z]/
2626
LOWER = /[a-z]/
27-
ACRONYM = /^\(?[A-Z0-9\.]+('?s)?\)?[.,:]?$/
27+
ACRONYM = /^\(?[A-Z0-9\.-]+('?s)?\)?[.,:]?$/
2828
ALL_ALPHA = /^[a-z]+$/i
2929
CONSONANT = /(^y|[bcdfghjklmnpqrstvwxz])/i
3030
VOWEL = /([aeiou]|y$)/i

0 commit comments

Comments
 (0)