Bug 30233: (follow-up) Fix POD formatting codes in _apply_substitution
The angle-bracket delimiter notation in the POD prose (e.g. PATTERN<DELIM>) caused the POD parser to treat the trailing letter of each word as an unknown formatting code (N<>, T<>). Replace with C<s/PATTERN/REPLACEMENT/FLAGS> and a parenthetical note that any non-space delimiter is accepted. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit 2a733f8093181c2aa880f8e56626de83277b64e8) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
74258d36d4
commit
a0059d4407
|
|
@ -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
|
||||
s<DELIM>PATTERN<DELIM>REPLACEMENT<DELIM>FLAGS; the pattern is compiled with
|
||||
C<s/PATTERN/REPLACEMENT/FLAGS> (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
|
||||
|
|
|
|||
Loading…
Reference in New Issue