Keep periods inside of words in Relevanssi

Keep periods inside of words in Relevanssi.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'relevanssi_remove_punctuation', function( $a ) {
    $a = preg_replace( '/(\w)\.(\w)/', '\1\2', $a );
    $a = preg_replace( '/(\w)\.(\w)/', '\1\2', $a );
    return $a;
}, 8 );