GitHub user felizbear reopened a pull request: https://github.com/apache/zeppelin/pull/1817
remove usage of non-standard string method ### What is this PR for? Recreating #1701 that was lost in refactoring. This PR removes a non-standard string prototype method `contains` that can cause potential bugs in the future maintenance. ### What type of PR is it? Bug Fix ### Todos * [x] - remove usage of non-standard string method `contains` in favor of standard `indexOf` ### How should this be tested? Download as `csv / tsv` (graph view) should work as expected You can merge this pull request into a Git repository by running: $ git pull https://github.com/felizbear/zeppelin remove-prototype-method Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/1817.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1817 ---- commit d8e9005ccdfcac296be89f5227966589f11a6fa2 Author: felizbear <i...@nflabs.com> Date: 2016-12-29T08:08:52Z remove usage of non-standard string method use standard `indexOf` method instead of proprietary `contains` defined on string by unknown library; it is a potential bug; also it doesn't add much value at all, compare: stringValue.contains(delimiter) stringValue.indexOf(delimiter) > -1 ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---