Skip to content

Commit

Permalink
Cloud test
Browse files Browse the repository at this point in the history
  • Loading branch information
gxjansen committed Dec 20, 2024
1 parent 707d817 commit 44ed253
Show file tree
Hide file tree
Showing 37 changed files with 2,176 additions and 840 deletions.
33 changes: 33 additions & 0 deletions check-paths.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import fs from 'fs/promises';
import path from 'path';

const FREELANCERS_CONTENT_DIR = 'src/content/freelancers';

async function checkPaths() {
try {
// Get all freelancer YAML files
const files = await fs.readdir(FREELANCERS_CONTENT_DIR);
const yamlFiles = files.filter(file => file.endsWith('.yaml'));

for (const yamlFile of yamlFiles) {
// Read YAML content
const yamlPath = path.join(FREELANCERS_CONTENT_DIR, yamlFile);
const content = await fs.readFile(yamlPath, 'utf8');

// Find the photo line
const photoLine = content.split('\n').find(line => line.startsWith('photo:'));

// Log the exact photo line with character codes
if (photoLine) {
console.log(`${yamlFile}:`);
console.log('Raw:', photoLine);
console.log('Chars:', [...photoLine].map(c => c.charCodeAt(0)));
console.log('---');
}
}
} catch (error) {
console.error('Check failed:', error);
}
}

checkPaths();
Loading

0 comments on commit 44ed253

Please sign in to comment.