Skip to content

fix: Use String.prototype.trim() if available#3446

Closed
ffflorian wants to merge 1 commit intoaxios:masterfrom
ffflorian:fix/trim
Closed

fix: Use String.prototype.trim() if available#3446
ffflorian wants to merge 1 commit intoaxios:masterfrom
ffflorian:fix/trim

Conversation

@ffflorian
Copy link

@ffflorian ffflorian commented Nov 27, 2020

Using a custom RegEx to trim a string is much slower (see JSBench example) than using String.prototype.trim().

@chiefkana
Copy link

Issue should have been patched after merging this fix. #3980

@chiefkana chiefkana mentioned this pull request Sep 2, 2021
@ffflorian ffflorian closed this Sep 2, 2021
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.

2 participants