32 lines
835 B
JavaScript
32 lines
835 B
JavaScript
const { PrismaClient } = require('@prisma/client');
|
|
const prisma = new PrismaClient();
|
|
|
|
async function main() {
|
|
const post = await prisma.blogPost.findUnique({
|
|
where: { slug: 'cyber-dome-cato' }
|
|
});
|
|
|
|
if (!post) {
|
|
console.log("Post not found");
|
|
return;
|
|
}
|
|
|
|
const snippet = post.content.substring(0, 1000);
|
|
console.log("Content start:");
|
|
console.log(snippet);
|
|
|
|
const match = post.content.match(/s.e sont/);
|
|
if (match) {
|
|
console.log("Found 's.e sont':", match[0]);
|
|
console.log("Hex:", Buffer.from(match[0]).toString('hex'));
|
|
}
|
|
|
|
const match2 = post.content.match(/cyberattaqu.es/);
|
|
if (match2) {
|
|
console.log("Found 'cyberattaqu.es':", match2[0]);
|
|
console.log("Hex:", Buffer.from(match2[0]).toString('hex'));
|
|
}
|
|
}
|
|
|
|
main().catch(console.error).finally(() => prisma.$disconnect());
|