Skip to content

Commit

Permalink
Combine regex
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 31, 2024
1 parent f1d6d87 commit f2385d6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -13429,11 +13429,12 @@ sub wide_to_html
# $string =~ s/&id=/&id=/g;

unless($params->{'keep_apos'}) {
$string =~ s/'/'/g;
$string =~ s//'/g;
$string =~ s//'/g;
$string =~ s//'/g;
$string =~ s/\x98/'/g;
# $string =~ s/'/'/g;
# $string =~ s/‘/'/g;
# $string =~ s/’/'/g;
# $string =~ s/‘/'/g;
# $string =~ s/\x98/'/g;
$string =~ s/['‘’‘\x98]/'/g;
}

if($string !~ /[^[:ascii:]]/) {
Expand Down

0 comments on commit f2385d6

Please sign in to comment.