You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A whitespace as the separator seems to be accepted at the moment; i.e. 600411 8177 (or even with a tab instead of space) is returned as valid. This seems to be from the regex that's being used (I've only checked the PHP and JS-packages);
Howdy! Writing some tests for a PHP-package I'm maintaining olssonm/swedish-entity that's built upon personnummer/php and I've encountered an oddity.
A whitespace as the separator seems to be accepted at the moment; i.e.
600411 8177
(or even with a tab instead of space) is returned as valid. This seems to be from the regex that's being used (I've only checked the PHP and JS-packages);There the separator,
(?\'sep\'[\+\-\s]?)
, accepts +,- or whitespace.The thing is though; I can't find any references that a whitespace should be valid for use in a personnummer or what the meaning would be.
Is this intended behaviour, or am I missing something? 🙃
The text was updated successfully, but these errors were encountered: