feat(publish): B站-智能工厂四级补贴首发归档
- drafts/ 按日期+名称分类重整 - 2026-05-09_B站首发归档至published/ - 配图6张永久存档
This commit is contained in:
14
skills/weekly-report/fix_week.mjs
Normal file
14
skills/weekly-report/fix_week.mjs
Normal file
@@ -0,0 +1,14 @@
|
||||
const fs = require('fs');
|
||||
const p = 'SKILL.md';
|
||||
let c = fs.readFileSync(p, 'utf8');
|
||||
const wm = 'Www.md';
|
||||
// Remove all markdown link pollution around weekly-YYYY-[Www.md]
|
||||
c = c.replace(/weekly-YYYY-\[Www\.md\]/g, 'weekly-YYYY-Www.md');
|
||||
c = c.replace(/weekly-YYYY-\(?https?:\/\/Www\.md\)?/g, 'weekly-YYYY-Www.md');
|
||||
c = c.replace(/weekly-YYYY-Www\.md(?!\.md)/g, 'weekly-YYYY-Www.md');
|
||||
fs.writeFileSync(p, c);
|
||||
const occ = c.match(/weekly-YYYY-[^\s\r\n`)]+/g);
|
||||
console.log('occurrences:', occ);
|
||||
console.log('---file excerpt---');
|
||||
const lines = c.split('\n').filter(l => l.includes('weekly-YYYY'));
|
||||
lines.forEach(l => console.log(l.trim()));
|
||||
Reference in New Issue
Block a user