From fef557b5c71a8282250b5c6bbe7d03d877d0aae1 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 7 Sep 2026 09:25:02 +0000 Subject: [PATCH] Drop seven unreachable alternatives from the Smart search rules Seven expansion patterns listed a long phrase alongside a shorter one that the long phrase always contains, so the shorter alternative matched first and the longer one could never be reached. Two are in Prescribing, one in Tools, and four in Calculators. The trimmed patterns are behaviour-identical: in each pair the surviving phrase is a suffix of the deleted one and carries the same word boundaries, so every string the old pattern matched the new one matches too. The existing unit tests already exercise three of these rules using the long phrasing and still pass unchanged, which is the proof that nothing moved. No rule is added, removed, or retargeted. This deletes dead text only. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_012j3M3zd5PkGfN5vJe3BiSU --- src/lib/smart-search-intent.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/smart-search-intent.ts b/src/lib/smart-search-intent.ts index ad7c2a9737..de17c71765 100644 --- a/src/lib/smart-search-intent.ts +++ b/src/lib/smart-search-intent.ts @@ -116,11 +116,11 @@ const modeExpansionRules: Record