Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Component / Diff / Engine / HWLDFWordAccumulator.php
index eb7d9434c963b133f0a7627a91f37a50e51ca206..98d430cfcc5c5acff4b6a2c3a8d815129dba8bd1 100644 (file)
@@ -2,8 +2,6 @@
 
 namespace Drupal\Component\Diff\Engine;
 
-use Drupal\Component\Utility\Unicode;
-
 /**
  * Additions by Axel Boldt follow, partly taken from diff.php, phpwiki-1.3.3
  */
@@ -64,7 +62,7 @@ class HWLDFWordAccumulator {
       }
       if ($word[0] == "\n") {
         $this->_flushLine($tag);
-        $word = Unicode::substr($word, 1);
+        $word = mb_substr($word, 1);
       }
       assert(!strstr($word, "\n"));
       $this->group .= $word;