X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FComponent%2FDiff%2FWordLevelDiff.php;h=66c6e1a90f2c7c7b4fdddfc4bb8290b790eef450;hp=a8c2f80f256ecc770c3131c5af362d0458a1802e;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/lib/Drupal/Component/Diff/WordLevelDiff.php b/web/core/lib/Drupal/Component/Diff/WordLevelDiff.php index a8c2f80f2..66c6e1a90 100644 --- a/web/core/lib/Drupal/Component/Diff/WordLevelDiff.php +++ b/web/core/lib/Drupal/Component/Diff/WordLevelDiff.php @@ -3,7 +3,6 @@ namespace Drupal\Component\Diff; use Drupal\Component\Diff\Engine\HWLDFWordAccumulator; -use Drupal\Component\Utility\Unicode; /** * @todo document @@ -35,7 +34,7 @@ class WordLevelDiff extends MappedDiff { $words[] = "\n"; $stripped[] = "\n"; } - if (Unicode::strlen($line) > $this::MAX_LINE_LENGTH) { + if (mb_strlen($line) > $this::MAX_LINE_LENGTH) { $words[] = $line; $stripped[] = $line; }