From fa344e79a0629ddad65b0a530f079cbc08832585 Mon Sep 17 00:00:00 2001 From: Tibsfox Date: Mon, 6 Apr 2026 22:55:55 -0700 Subject: [PATCH] fix(test): escape regex metacharacters in skip-by-preference pattern test The test regex used unescaped (?:...) groups which were interpreted as regex syntax instead of matching the literal source text. Escape parens to match the actual regex pattern in the source code. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../extensions/gsd/tests/skipped-validation-completion.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/extensions/gsd/tests/skipped-validation-completion.test.ts b/src/resources/extensions/gsd/tests/skipped-validation-completion.test.ts index ddf4b9054..927eb3a57 100644 --- a/src/resources/extensions/gsd/tests/skipped-validation-completion.test.ts +++ b/src/resources/extensions/gsd/tests/skipped-validation-completion.test.ts @@ -28,7 +28,7 @@ describe('skipped validation completion (#3698)', () => { }); test('regex matches skip-by-preference patterns', () => { - assert.match(autoDispatchSrc, /skip(?:ped)?\[\\s\\-\]\+(?:by\|per\|due to)/, + assert.match(autoDispatchSrc, /skip\(\?:ped\)\?\[\\s\\-\]\+\(\?:by\|per\|due to\)/, 'should have regex matching "skipped by/per/due to" patterns'); });