[Koha-bugs] [Bug 29375] Excessive regular expressions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Oct 30 13:40:33 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29375

--- Comment #1 from Andrii Veremeienko <andriiverem at gmail.com> ---
Created attachment 127107
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=127107&action=edit
Bug 29375: Excessive regular expressions

There are several places throughout the application where regular expressions
are used for the whitespaces trimming together with the normalization function
C4::Circulation::barcodedecode.

Solution was to remove those regular expressions, because
C4::Circulation::barcodedecode trimming whitespaces by itself.

How to test:
1. Go to the Koha code base;
2. Do global search by "barcodedecode" key word;
3. Observe that there are several places where barcodedecode used with regular
expression together;
4. Apply the patch;
5. Repeat steps 1, 2;
6. Observe that there are no regular expressions used together with
barcodedecode;

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list