bonzo
bonzo copied to clipboard
Use replace rather than trim
Browser support is IE9+, but this would go towards making it more lenient to older browsers that don't support trim
Would suggest using a better regex
.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
'')`