1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! String normalization helpers for search and filtering.
//!
//! Responsibilities:
//! - Normalize strings for consistent comparison (trim + lowercase)
//!
//! Not handled here:
//! - Regex compilation or pattern matching
//! - Fuzzy matching normalization (handled by nucleo_matcher)
//!
//! Invariants/assumptions:
//! - All normalized strings are lowercase and trimmed
//! - Empty strings after trimming are filtered out by callers
/// Normalize a string for comparison by trimming and lowercasing.
///
/// Used for both scope and tag normalization since they share
/// the same semantics (case-insensitive matching after trim).