Skip to content

Commit

Permalink
Merge pull request #1139 from vishal-singh-webkul/gli-2133
Browse files Browse the repository at this point in the history
Updated: The validation for the city name.
  • Loading branch information
rohit053 authored Jul 11, 2024
2 parents eaf2f8f + 9eee80a commit a933c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public static function isAddress($address)
*/
public static function isCityName($city)
{
return preg_match(Tools::cleanNonUnicodeSupport('/^[^!<>;?=+@#"°{}_$%]*$/u'), $city);
return preg_match(Tools::cleanNonUnicodeSupport('/^\p{L}+[^!<>;?=+@#"°{}_$%]*$/u'), $city);
}

/**
Expand Down

0 comments on commit a933c64

Please sign in to comment.