Skip to content

Commit

Permalink
🐛Barcode markers are now added by default
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjpatty committed Feb 11, 2020
1 parent 21be301 commit 00e4c01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tecuity/barcode-generator",
"version": "1.1.3",
"version": "1.1.4",
"main": "dist/index.js",
"license": "MIT",
"dependencies": {},
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const getDefaultOptions = opts => ({
raw: opts.raw === true ? true : false
})

export default (string = "", opts: {}) => {
export default (rawString = "", opts: {}) => {
const string = `*${rawString.replace(/\*/g, '')}*`
const options = getDefaultOptions(opts)
const stringMap = string.split("");

Expand Down

0 comments on commit 00e4c01

Please sign in to comment.