Skip to content

Commit

Permalink
CRM_Utils_String::munge() - Change test
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw authored and totten committed Jul 22, 2023
1 parent ad6dd2b commit 368ab1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Utils/String.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public static function munge($name, $char = '_', $len = 63) {
// CRM-11744
$name = preg_replace('/[^a-zA-Z0-9]+/', $char, trim($name));

//If there are no ascii characters present.
if ($name == $char) {
// If there are no ascii characters present.
if (!strlen(trim($name, $char))) {
$name = self::createRandom($len, self::ALPHANUMERIC);
}

Expand Down

0 comments on commit 368ab1d

Please sign in to comment.