KEMBAR78
Avoid non-standard String.prototype.trimRight by josh · Pull Request #401 · clutchski/coffeelint · GitHub
Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Conversation

josh
Copy link
Contributor

@josh josh commented Apr 12, 2015

While String.prototype.trim is part of the ES spec, trimRight and trimLeft aren't.

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

This improves compatibly running the MaxLineLength linter in browsers that may not support trimRight.

@swang
Copy link
Collaborator

swang commented Apr 12, 2015

👍

swang added a commit that referenced this pull request Apr 12, 2015
Avoid non-standard String.prototype.trimRight
@swang swang merged commit 89564ad into clutchski:master Apr 12, 2015
@josh josh deleted the trim-right-compat branch April 13, 2015 17:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants