mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
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
This commit is contained in:
parent
cb5c8a414a
commit
ae9820e1f3
1 changed files with 1 additions and 1 deletions
|
|
@ -1338,7 +1338,7 @@
|
|||
var dsvRow = '';
|
||||
for (var index in row) {
|
||||
var stringValue = (row[index]).toString();
|
||||
if (stringValue.contains(delimiter)) {
|
||||
if (stringValue.indexOf(delimiter) > -1) {
|
||||
dsvRow += '"' + stringValue + '"' + delimiter;
|
||||
} else {
|
||||
dsvRow += row[index] + delimiter;
|
||||
|
|
|
|||
Loading…
Reference in a new issue