A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
Go to file
Moon d64a276032 Introduce a 320 character limit for inbox note contents (https://github.com/woocommerce/woocommerce-admin/pull/7958)
* Introduce a 320 char limit for inbox notes

* Extract truncateRenderableHTML to utils and use truncate from lodash to support word break

* Replace omission with blank so that lodash does not add ... at the end

* Add test cases for truncateRenderableHTML

* Add a test case with unicode string

* Add changelog

* Add a test case for preserving whole words
2021-11-23 15:47:48 -08:00
plugins/woocommerce-admin Introduce a 320 character limit for inbox note contents (https://github.com/woocommerce/woocommerce-admin/pull/7958) 2021-11-23 15:47:48 -08:00