Skip to content

ASCIIi is not supported #12

@shwao

Description

@shwao

You defined ASCIIi as a possible type here:

node-qr/lib/encoder.js

Lines 23 to 24 in fd7f466

Encoder.prototype.types = ['PNG', 'EPS', 'SVG', 'ANSI', 'ANSI256', 'ASCII',
'ASCIIi', 'UTF8', 'ANSIUTF8', null];

But you are checking the types with toUpperCase() here:

if(self.types.indexOf(cmd_options.type.toUpperCase()) === -1){

Also this line:

throw new Error('type must be one of ', self.types.toString());

Should be

throw new Error('type must be one of ' + self.types.join());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions