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
44
45
46
47
48
//! Minimal `*`-glob matcher for `entity_match` rules.
//!
//! Handles `"*"`, `"prefix*"`, `"*suffix"`, and interior wildcards like
//! `"a*b*c"`. A dedicated glob crate would be overkill for matching catalog ids
//! at ingest time.
//!
//! Matching operates on raw bytes (`&[u8]`), not `char` boundaries: a candidate
//! may carry multibyte UTF-8 and slicing it on a non-boundary byte would panic.
//! For ASCII ids — every id this matcher actually sees — byte and char matching
//! are identical.