Skip to content

Use replace rather than trim#133

Open
ironsidevsquincy wants to merge 1 commit intoded:masterfrom
ironsidevsquincy:master
Open

Use replace rather than trim#133
ironsidevsquincy wants to merge 1 commit intoded:masterfrom
ironsidevsquincy:master

Conversation

@ironsidevsquincy
Copy link

Browser support is IE9+, but this would go towards making it more lenient to older browsers that don't support trim

@sach2211
Copy link

Would suggest using a better regex
.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '')`

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