Open czigor opened 6 years ago
@bojanz Added a test that fails without the fix. For this I needed a custom NumberFormatRepository, which I'm not sure how to include in the test.
The remaining test failure happens in master too.
The failing test was my bad, fixed it too.
As discussed in https://www.drupal.org/project/commerce/issues/2936294, trim() only works for ASCII and does not work on multibyte utf8 characters. Let's use a preg_replace() instead.