lindell / lindell/JsBarcode

Bug in options from strings

Open
#228 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I don't know if this documented, but "width" can be not only int but float (this is required to draw fitted svg barcodes). But since it works using options it should work using jsbarcode-width attribute, but it don't.
This is due to bug in src/help/optionsFromStrings.js
parseInt should be replaced with parseFloat for "jsbarcode-width" option.

Contributor guide

Open the contributing guide

Research direction

Start in src/help/optionsFromStrings.js and trace how the jsbarcode-width attribute is converted from a string. Verify that fractional width values are preserved for attribute-based options while integer values continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.