fixed paste error

master
Edward Peterson 3 years ago
parent 1f75f22f3f
commit fd9dc286b2

@ -14,7 +14,7 @@ module.exports = {
console.log('Found base64 image.') console.log('Found base64 image.')
const regex = /^data:(?<contentType>[^;]+);base64,(?<data>.+)/g; const regex = /^data:(?<contentType>[^;]+);base64,(?<data>.+)/g;
const matches = data.matchAll(regex); const matches = src.matchAll(regex);
const groups = Array.from(matches, m => m.groups)[0] const groups = Array.from(matches, m => m.groups)[0]

Loading…
Cancel
Save