Skip to content

Comments

Add feature ignore unknown AIs#17

Open
RafaRuiz wants to merge 1 commit intomobui:masterfrom
RafaRuiz:master
Open

Add feature ignore unknown AIs#17
RafaRuiz wants to merge 1 commit intomobui:masterfrom
RafaRuiz:master

Conversation

@RafaRuiz
Copy link

@RafaRuiz RafaRuiz commented Feb 9, 2026

Hapened to have a code such as:

��0108055277900104�17260201�1024CA167�AIC030794010

Specially the part of:

AIC030794010

AIC is actually the number 716, which is an Italian reimbursement number. Also this isn't included in the library but can be easily added in a custom parser.

The problem isn't the AIC <-> 716, but that I might want to ignore unknown AIs.

Sometimes these codes bring fancy codes or information at the end of the string that we don't care about.

So I:

  • Added a feature to ignore unknown AIs.
  • It has backwards compatibility, because the default ignoreUnknownAIs is false
  • It also does the same job if the unknown AI is in the middle. It'll look until the next GS1BarcodeParserConfig.groupSeparator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant