|
|
|
|
@ -14,7 +14,7 @@ module.exports = {
|
|
|
|
|
console.log('Found base64 image.')
|
|
|
|
|
|
|
|
|
|
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]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|