Skip to content

Commit

Permalink
Merge branch 'MDL-43760-26' of git://github.com/damyon/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_26_STABLE
  • Loading branch information
danpoltawski committed Jan 21, 2014
2 parents eef0d30 + 6241547 commit 1cbda6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moodlelib.php
Expand Up @@ -3628,7 +3628,7 @@ function fullname($user, $override=false) {
// The special characters are Japanese brackets that are common enough to make allowances for them (not covered by :punct:).
$patterns[] = '/[[:punct:]「」]*EMPTY[[:punct:]「」]*/u';
// This regular expression is to remove any double spaces in the display name.
$patterns[] = '/\s{2,}/';
$patterns[] = '/\s{2,}/u';
foreach ($patterns as $pattern) {
$displayname = preg_replace($pattern, ' ', $displayname);
}
Expand Down

0 comments on commit 1cbda6f

Please sign in to comment.