migration wip
This commit is contained in:
19
test-entities.js
Normal file
19
test-entities.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const fs = require('fs');
|
||||
const content = fs.readFileSync('data/processed/pages.json', 'utf8');
|
||||
const pages = JSON.parse(content);
|
||||
const start = pages.find(p => p.slug === 'start' && p.locale === 'de');
|
||||
const html = start.contentHtml;
|
||||
|
||||
// Find the first bg_image
|
||||
const match = html.match(/bg_image=([^>]+)/);
|
||||
if (match) {
|
||||
const after = match[1];
|
||||
console.log('After bg_image=:', JSON.stringify(after.substring(0, 30)));
|
||||
|
||||
// Check each character
|
||||
for (let i = 0; i < Math.min(10, after.length); i++) {
|
||||
const char = after[i];
|
||||
const code = char.charCodeAt(0);
|
||||
console.log(` [${i}] '${char}' = ${code} (0x${code.toString(16)})`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user