Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Component / Utility / Color.php
index e3cb56bc92691be5ab6d7426bd439c52e265ceb9..ff06f39f413270321e943fafad8831fb18fe0da0 100644 (file)
@@ -23,7 +23,7 @@ class Color {
     // Hash prefix is optional.
     $hex = ltrim($hex, '#');
     // Must be either RGB or RRGGBB.
-    $length = Unicode::strlen($hex);
+    $length = mb_strlen($hex);
     $valid = $valid && ($length === 3 || $length === 6);
     // Must be a valid hex value.
     $valid = $valid && ctype_xdigit($hex);