Skip to content

Commit e7fd495

Browse files
authored
Merge pull request #18 from Johannestegner/master
hotfix: Regex separator issue.
2 parents b954f52 + 6f8ae63 commit e7fd495

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/Personnummer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import java.time.format.DateTimeParseException
1212

1313
class Personnummer {
1414
companion object {
15-
val PNR_REGEX = "^(\\d{2})?(\\d{2})(\\d{2})(\\d{2})([-|+]?)?((?!000)\\d{3})(\\d?)$".toRegex()
15+
val PNR_REGEX = "^(\\d{2})?(\\d{2})(\\d{2})(\\d{2})([-+]?)?((?!000)\\d{3})(\\d?)$".toRegex()
1616
val ASCII_REDUCE = 48
1717

1818
/**

0 commit comments

Comments
 (0)