Skip to content

Commit

Permalink
Merge pull request #18 from Johannestegner/master
Browse files Browse the repository at this point in the history
hotfix: Regex separator issue.
  • Loading branch information
rasmusbe authored Oct 28, 2021
2 parents b954f52 + 6f8ae63 commit e7fd495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/Personnummer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import java.time.format.DateTimeParseException

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

/**
Expand Down

0 comments on commit e7fd495

Please sign in to comment.