From da595ca8d5d5d1144b9c6db64f46148c517b1203 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 1 Jul 2026 09:21:40 +0100 Subject: [PATCH] Bug 30233: (follow-up) Fix POD formatting codes in _apply_substitution The angle-bracket delimiter notation in the POD prose (e.g. PATTERN) caused the POD parser to treat the trailing letter of each word as an unknown formatting code (N<>, T<>). Replace with C and a parenthetical note that any non-space delimiter is accepted. Signed-off-by: Martin Renvoize Signed-off-by: Baptiste Wojtkowski Signed-off-by: Pedro Amorim --- C4/ClassSplitRoutine/RegEx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/ClassSplitRoutine/RegEx.pm b/C4/ClassSplitRoutine/RegEx.pm index 1369727bcc..35da84f25c 100644 --- a/C4/ClassSplitRoutine/RegEx.pm +++ b/C4/ClassSplitRoutine/RegEx.pm @@ -57,7 +57,7 @@ sub split_callnumber { Applies a single admin-configured s/// substitution to $string in place, without ever evaluating the input as code. The rule is parsed as -sPATTERNREPLACEMENTFLAGS; the pattern is compiled with +C (any non-space delimiter is accepted); the pattern is compiled with qr// (so embedded-code assertions are treated as a runtime pattern and blocked by Perl), and the replacement is expanded as data via Koha::Regex::Replacement::expand_template. The