Skip to content

Commit

Permalink
Tolerate more apostrophes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Sep 28, 2023
1 parent 697744a commit 3b11c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CheckSpelling/UnknownWordSplitter.pm
Expand Up @@ -244,7 +244,7 @@ sub split_line {

my ($words, $unrecognized) = (0, 0);
my ($line, $unique_ref, $unique_unrecognized_ref, $unrecognized_line_items_ref) = @_;
$line =~ s/$rsqm|'|'/'/g;
$line =~ s/(?:$rsqm|'|'|\%27|')+/'/g;
$line =~ s/(?:$ignore_pattern)+/ /g;
while ($line =~ s/($upper_pattern{2,})($upper_pattern$lower_pattern{2,})/ $1 $2 /g) {}
while ($line =~ s/((?:$lower_pattern|$punctuation_pattern)+)($upper_pattern)/$1 $2/g) {}
Expand Down

0 comments on commit 3b11c85

Please sign in to comment.