Skip to content

Commit 54eec4b

Browse files
committed
Fixed copy/paste bug in RGB parser - issue #173
1 parent 00c490e commit 54eec4b

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ found at the end of this document.
2424
2525
## Status
2626

27-
* Current bwip-js version is 2.0.9 (2020-07-08)
27+
* Current bwip-js version is 2.0.10 (2020-07-27)
2828
* Current BWIPP version is 2019-11-08
2929
* Node.js compatibility: 0.12+
3030
* Browser compatibility: Edge, Firefox, Chrome

dist/bwip-js-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bwip-js.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33153,7 +33153,7 @@ BWIPJS.prototype.getRGB = function() {
3315333153
var r = this.g_rgb[0].toString(16);
3315433154
var g = this.g_rgb[1].toString(16);
3315533155
var b = this.g_rgb[2].toString(16);
33156-
return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(g.length) + g;
33156+
return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b;
3315733157
};
3315833158
BWIPJS.prototype.newpath = function() {
3315933159
this.g_path = [];
@@ -36232,7 +36232,7 @@ return {
3623236232
toCanvas:ToCanvas, render:Render, raw:Raw,
3623336233
fixupOptions:FixupOptions,
3623436234
loadFont:FontLib.loadFont,
36235-
VERSION:'2.0.9 (2020-07-08)',
36235+
VERSION:'2.0.10 (2020-07-27)',
3623636236

3623736237
// Internals
3623836238
BWIPJS:BWIPJS, BWIPP:BWIPP, STBTT:STBTT, FontLib:FontLib,

dist/node-bwipjs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33187,7 +33187,7 @@ BWIPJS.prototype.getRGB = function() {
3318733187
var r = this.g_rgb[0].toString(16);
3318833188
var g = this.g_rgb[1].toString(16);
3318933189
var b = this.g_rgb[2].toString(16);
33190-
return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(g.length) + g;
33190+
return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b;
3319133191
};
3319233192
BWIPJS.prototype.newpath = function() {
3319333193
this.g_path = [];
@@ -36406,7 +36406,7 @@ return {
3640636406
request:Request, toBuffer:ToBuffer, render:Render, raw:Raw,
3640736407
fixupOptions:FixupOptions,
3640836408
loadFont:FontLib.loadFont,
36409-
VERSION:'2.0.9 (2020-07-08)',
36409+
VERSION:'2.0.10 (2020-07-27)',
3641036410

3641136411
// Internals
3641236412
BWIPJS:BWIPJS, BWIPP:BWIPP, STBTT:STBTT, FontLib:FontLib,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bwip-js",
3-
"version": "2.0.9",
3+
"version": "2.0.10",
44
"description": "JavaScript barcode generator supporting over 100 types and standards.",
55
"main": "./dist/node-bwipjs.js",
66
"browser": "./dist/bwip-js.js",

src/bwipjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ BWIPJS.prototype.getRGB = function() {
158158
var r = this.g_rgb[0].toString(16);
159159
var g = this.g_rgb[1].toString(16);
160160
var b = this.g_rgb[2].toString(16);
161-
return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(g.length) + g;
161+
return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b;
162162
};
163163
BWIPJS.prototype.newpath = function() {
164164
this.g_path = [];

0 commit comments

Comments
 (0)