Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal/Component/Utility/Unicode.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 7a779792577d |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/core/lib/Drupal/Component/Utility/Unicode.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/lib/Drupal/Component/Utility/Unicode.php Mon Apr 23 09:46:53 2018 +0100 @@ -548,7 +548,7 @@ // Find the last word boundary, if there is one within $min_wordsafe_length // to $max_length characters. preg_match() is always greedy, so it will // find the longest string possible. - $found = preg_match('/^(.{' . $min_wordsafe_length . ',' . $max_length . '})[' . Unicode::PREG_CLASS_WORD_BOUNDARY . ']/u', $string, $matches); + $found = preg_match('/^(.{' . $min_wordsafe_length . ',' . $max_length . '})[' . Unicode::PREG_CLASS_WORD_BOUNDARY . ']/us', $string, $matches); if ($found) { $string = $matches[1]; }