floatdrop / gulp-plumber

Fixing Node pipes
MIT License
806 stars 32 forks source link

Use str.trim() instead of str.replace(/^\s+|\s+$/g, '') #21

Closed simnalamburt closed 9 years ago

simnalamburt commented 9 years ago

It behaves exactly same

References: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim