Skip to content

Conversation

@czigor
Copy link

@czigor czigor commented Nov 21, 2018

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.

@czigor czigor force-pushed the trim branch 2 times, most recently from b7c39c4 to 19d84f0 Compare November 21, 2018 12:52
@czigor czigor force-pushed the trim branch 2 times, most recently from db57e62 to f2d5bee Compare November 30, 2018 18:15
@czigor
Copy link
Author

czigor commented Nov 30, 2018

@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.

@czigor
Copy link
Author

czigor commented Nov 30, 2018

The remaining test failure happens in master too.

@czigor
Copy link
Author

czigor commented Dec 3, 2018

The failing test was my bad, fixed it too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant