GitHub user felizbear opened a pull request:
https://github.com/apache/zeppelin/pull/1701
remove usage of non-standard string method
### What is this PR for?
This PR removes non-standard string prototype method 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
front-end-do-not-modify-protoypes-please
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/1701.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 #1701
----
commit ae9820e1f3a536a7f53a8ad18a80e67ff99b6543
Author: felizbear <[email protected]>
Date: 2016-11-29T09:37:02Z
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 [email protected] or file a JIRA ticket
with INFRA.
---