diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c56feda925..c7eb187d4d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: go-version: [1.18.x, 1.19.x, 1.20.x, '>=1.21.1', 1.22.x] - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-13, windows-latest] targetplatform: [x86, x64] runs-on: ${{ matrix.os }} diff --git a/lib.go b/lib.go index bfa992e587..420f69a0f5 100644 --- a/lib.go +++ b/lib.go @@ -646,6 +646,11 @@ func getRootElement(d *xml.Decoder) []xml.Attr { case xml.StartElement: tokenIdx++ if tokenIdx == 1 { + for i := 0; i < len(startElement.Attr); i++ { + if startElement.Attr[i].Value == NameSpaceSpreadSheet.Value { + startElement.Attr[i] = NameSpaceSpreadSheet + } + } return startElement.Attr } }