Skip to content

Processing twice each ai... is that how it is supposed to work? #19

Description

@MagnoUrbano

Hi

I turn printDebugOutput to true on GS1BarcodeParser.swift.

When this method parseGS1ApplicationIdentifier(ai:data:) runs, I get duplicate printings on console, like this

Parsing application identifier with identifier 01 of type Optional("AlphaNumeric")
Parsing application identifier with identifier 17 of type Optional("Date")
Parsing application identifier with identifier 10 of type Optional("AlphaNumeric")
Parsing application identifier with identifier 21 of type Optional("AlphaNumeric")
Parsing application identifier with identifier 01 of type Optional("AlphaNumeric")
Parsing application identifier with identifier 17 of type Optional("Date")
Parsing application identifier with identifier 10 of type Optional("AlphaNumeric")
Parsing application identifier with identifier 21 of type Optional("AlphaNumeric")

The library is parsing identifiers 1, 17, 10 and 21 two times and for some barcodes, it crashes after this.

Is it supposed to do this?

thanks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions