Skip to content

Commit 544ad91

Browse files
Updated regexp to allow 000x org numbers.
Signed-off-by: Johannes Tegnér <johannes@jitesoft.com>
1 parent 008b5eb commit 544ad91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Organisationsnummer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Organisationsnummer
2424
'Enskild firma', // 10
2525
];
2626

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

2929
//region static
3030

0 commit comments

Comments
 (0)