Skip to content

Commit 378c074

Browse files
author
Viktor Sevch
committed
MC-39886: Improve customer api
1 parent 3b43bea commit 378c074

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Customer/Model/Validator

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/Validator/Name.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function isValid($customer)
4747
private function isValidName($nameValue)
4848
{
4949
if ($nameValue != null) {
50-
$pattern = '/(?:[\p{L}\p{M}\,\-\.\'\"\s\d]){1,255}+/u';
50+
$pattern = '/(?:[\p{L}\p{M}\,\-\_\.\'\"\s\d]){1,255}+/u';
5151
if (preg_match($pattern, $nameValue, $matches)) {
5252
return $matches[0] == $nameValue;
5353
}

0 commit comments

Comments
 (0)