lindell / lindell/JsBarcode

Code 39 Asterisk

Open
#322 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I am trying to generate a CODE39 bar code that contains an asterisk but it generates this error => 0x800a139e - JavaScript runtime error: "W20121921377700*" is not a valid input for undefined

I read somewhere that the character is used to delimit the field being converted and that's why it throws the error but I'm not sure how to get around it. Is there a way to escape the asterisk so it doesn't blow up in conversion?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by reproducing the failure in the CODE39 conversion entry point with an asterisk in the input, then inspect how CODE39 delimiters are handled. Done means a CODE39 value containing an asterisk converts without the reported JavaScript runtime error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.