feat: add floating social share buttons and restore text justification
This commit is contained in:
31
check_db.cjs
Normal file
31
check_db.cjs
Normal file
@@ -0,0 +1,31 @@
|
||||
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());
|
||||
Reference in New Issue
Block a user