Skip to content

Commit 1501de3

Browse files
committed
Phone number cleaning allow spaces
1 parent 5b4c677 commit 1501de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PHPFUI/ORM/Record.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,9 +714,9 @@ protected function cleanNumber(string $field) : static
714714
}
715715

716716
/**
717-
* removes all non-digits (0-9) and regex separators
717+
* removes all invalid characters. (0-9) and regex separators are valid.
718718
*/
719-
protected function cleanPhone(string $field, string $regExSeparators = '\\-\\.') : static
719+
protected function cleanPhone(string $field, string $regExSeparators = '\\-\\. ') : static
720720
{
721721
if (isset($this->current[$field]))
722722
{

0 commit comments

Comments
 (0)