diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-24 15:48:43 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-24 15:48:43 -0400 |
| commit | ab8cc4da57fce5d0a59f4db34fb550919a06ea79 (patch) | |
| tree | 5155c062f6c24d2629cae17fe16243d07509ce3a /tests/test-chime-notifications.el | |
| parent | 3814d633ec7087f7d720123a2a2054d14f646ea6 (diff) | |
| download | chime-ab8cc4da57fce5d0a59f4db34fb550919a06ea79.tar.gz chime-ab8cc4da57fce5d0a59f4db34fb550919a06ea79.zip | |
refactor: drive chime--sanitize-title delimiters from one alist
The function matched parens, brackets, and braces with three near-identical cond branches plus a parallel opener-to-closer mapping. That's one balancing algorithm written three times. I replaced it with a single ((open . close) ...) alist driven by assq/rassq. Adding or changing a delimiter pair is now a one-line edit, and there's one code path to reason about. Behavior is unchanged. The existing 30 characterization tests stay green.
Diffstat (limited to 'tests/test-chime-notifications.el')
0 files changed, 0 insertions, 0 deletions
