mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
bc0b59f721
Replace duplicated `%w(# ## ###).include?(matcher.sep)` and `["##", "###"].include?(matcher.sep)` checks with named predicates on the WorkPackages link handler: HASH_TRIGGERS for the `#`/`##`/`###` family, hash_trigger? to gate the handler, and quickinfo?/detailed? to distinguish the three macro shapes. The PDF-export subclass picks both up via inheritance. "Trigger" replaces "separator" in the WP context: in `#1234` the `#` is a sigil that triggers mention recognition, not something that separates parts of the reference. The matcher's generic `sep` vocabulary stays — it still fits the `version#3` and `version:1.0.0` cases that other handlers own.