oroinc / platform

Main OroPlatform package with core functionality.
Other
627 stars 351 forks source link

text-util.js : Abbreviation on Data Grid Header cause Unicode character lost. #872

Open HongQuanTo opened 5 years ago

HongQuanTo commented 5 years ago

src/Oro/Bundle/UIBundle/Resources/public/js/tools/text-util.js

line 82: var words = _.compact(text.split(/\W+/));

This result in in lost Unicode character for data grid header. Test: Set an entity to displayed on data grid with column header "Đăng nhập vào lúc" Expected: "ĐNVL" or "ĐĂNG NHẬP VÀO LÚC" Actual: NGNHPVOLC Which is the result of treating Unicode character as word deliminator. Suggestion: review Regex to use white-space as word deliminator instead.

Grygir commented 5 years ago

Thank you for reporting the issue. We've added the bug-ticket into our backlog. Once it is fixed, this issue will be updated.