const fs = require('fs');
const content = fs.readFileSync('./dist/assets/index-D9sWWWv_.js', 'utf8');

// Find occurrences of ".price" around voucher rendering
const regex = /\.price\b/g;
let match;
let count = 0;
while ((match = regex.exec(content)) !== null) {
    count++;
    if (count > 50) break; // limit output
    console.log(`Match ${count} at index:`, match.index);
    console.log(content.substring(match.index - 100, match.index + 100));
    console.log("-----------------------");
}
