Skip to content

regex missing '=' ? #34

Open
Open
@SpudBaker

Description

@SpudBaker

Hi,
many thanks for making this plugin available. I am using it on a Capacitor project with an embedded Google OCR component.
When importing an image on iOS and passing it the OCR engine an error is being thrown (OCR failed to decode image'). If the same file is 'shared' using another plugin as opposed to importing OCR works just fine.
The difference in the two base64 strings is that the good one has '==' at the end. Changing the regex in the js file in this plugin to include '=' resolves the issue.
/[^A-Za-z0-9\+\/=]

cheers,

R

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions