Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecated: Improve $.trim performance for strings with lots of white…
…space Regex imp implementation takes `O(N^2)` time to trim the string when multiple adjacent spaces were present. The new expression require that the "whitespace run" starts from a non-whitespace to avoid `O(N^2)` behavior when the engine would try matching `\s+$` at each space position. Closes gh-5068
- Loading branch information