There are several places throughout the application where regular expressions are used for the whitespaces trimming together with the normalization function C4::Circulation::barcodedecode. It is an overkilling and better to remove those regular expressions, because C4::Circulation::barcodedecode trimming whitespaces by itself.
Created attachment 127107 [details] [review] 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;
Depending on the itemBarcodeInputFilter setting it doesn't do that. This would basically revert the fixes made in bug 25341.