mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-11 03:43:30 +08:00
test: relax sync-ecc shell parsing
This commit is contained in:
@@ -8,11 +8,9 @@ const path = require('path');
|
|||||||
|
|
||||||
const scriptPath = path.join(__dirname, '..', '..', 'scripts', 'sync-ecc-to-codex.sh');
|
const scriptPath = path.join(__dirname, '..', '..', 'scripts', 'sync-ecc-to-codex.sh');
|
||||||
const source = fs.readFileSync(scriptPath, 'utf8');
|
const source = fs.readFileSync(scriptPath, 'utf8');
|
||||||
const runOrEchoStart = source.indexOf('run_or_echo() {');
|
const normalizedSource = source.replace(/\r\n/g, '\n');
|
||||||
const runOrEchoEnd = source.indexOf('\n\nrequire_path() {', runOrEchoStart);
|
const runOrEchoMatch = normalizedSource.match(/^run_or_echo\(\)\s*\{[\s\S]*?^}/m);
|
||||||
const runOrEchoSource = runOrEchoStart >= 0 && runOrEchoEnd > runOrEchoStart
|
const runOrEchoSource = runOrEchoMatch ? runOrEchoMatch[0] : '';
|
||||||
? source.slice(runOrEchoStart, runOrEchoEnd)
|
|
||||||
: '';
|
|
||||||
|
|
||||||
function test(name, fn) {
|
function test(name, fn) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user