|
@ -179,7 +179,7 @@ const has_embed = async (png: Buffer) => { |
|
|
return true; |
|
|
return true; |
|
|
if (buff.slice(4, 4 + CUM6.length).equals(CUM6)) { |
|
|
if (buff.slice(4, 4 + CUM6.length).equals(CUM6)) { |
|
|
const passed = buff.slice(4 + CUM6.length).toString(); |
|
|
const passed = buff.slice(4 + CUM6.length).toString(); |
|
|
return !!passed.match(/[0-9a-zA-Z+/]+/g); |
|
|
return !!passed.match(/^[0-9a-zA-Z+/=]+$/g); |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
case 'IDAT': |
|
|
case 'IDAT': |
|
|