From de1b87ff4d422518a0ff5604d274d3ed577a7a21 Mon Sep 17 00:00:00 2001 From: Fredrik Forsmo Date: Tue, 20 Feb 2024 18:16:50 +0100 Subject: [PATCH 1/2] Allow + characters in enskild firma --- organisationsnummer.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/organisationsnummer.go b/organisationsnummer.go index 7566c85..c78e84d 100644 --- a/organisationsnummer.go +++ b/organisationsnummer.go @@ -158,8 +158,13 @@ func (o *Organisationsnummer) Format(separator ...bool) string { var number = o.number if o.IsPersonnummer() { + if len(separator) > 0 && separator[0] { + f, _ := o.personnummer.Format(false) + return f + } + f, _ := o.personnummer.Format(true) - number = f[2:] + return f[2:] } if len(separator) > 0 && separator[0] { From f9ee43aa43efe44df3fb3fc0993d4a5d2b1f4495 Mon Sep 17 00:00:00 2001 From: Fredrik Forsmo Date: Tue, 20 Feb 2024 18:18:14 +0100 Subject: [PATCH 2/2] Bump go version --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index dd15db0..4e889b9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,7 +11,7 @@ jobs: test: strategy: matrix: - go-version: [1.12.x, 1.18.x] + go-version: [1.12.x, 1.22.x] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: