Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regex missing '=' ? #34

Open
SpudBaker opened this issue Dec 4, 2020 · 0 comments
Open

regex missing '=' ? #34

SpudBaker opened this issue Dec 4, 2020 · 0 comments

Comments

@SpudBaker
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant