Skip to content

Commit

Permalink
Updated regexp to allow 000x org numbers.
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Tegnér <[email protected]>
  • Loading branch information
Johannestegner committed Jan 22, 2023
1 parent 008b5eb commit 544ad91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Organisationsnummer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Organisationsnummer
'Enskild firma', // 10
];

private const REGEX = '/^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([-+]?)?((?!000)\d{3})(\d)$/';
private const REGEX = '/^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([-+]?)?(\d{4})$/';

//region static

Expand Down

0 comments on commit 544ad91

Please sign in to comment.