:+1: these are common with table and figure titles


On Fri, May 30, 2014 at 6:07 PM, Brandon Raxter <notifications@github.com>
wrote:

> In lib/Caxy/HtmlDiff/HtmlDiff.php:
>
> > @@ -195,7 +201,10 @@ private function convertHtmlToListOfWords($characterString)
> >                      $current_word = $character;
> >                      $mode = 'whitespace';
> >                  } else {
> > -                    if ( ctype_alnum( $character ) && ( strlen($current_word) == 0 || ctype_alnum( $current_word ) ) ) {
> > +                    if (
> > +                        (ctype_alnum($character) && (strlen($current_word) == 0 || $this->isSingleWord($current_word))) ||
> > +                        (in_array($character, $this->specialCaseChars) && isset($characterString[$i+1]) && $this->isSingleWord($characterString[$i+1]))
> > +                    ) {
>
> Perhaps ( and ) as should be considered as part of a word as well?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/caxy/php-htmldiff/pull/3/files#r13255285>.
>