Skip to content

Commit

Permalink
Correct small typo (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
jseter authored and pokoli committed Oct 21, 2019
1 parent 6f7e43e commit e0b474d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions papaparse.js
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ License: MIT
// we check, if we have quotes, because delimiter char may be part of field enclosed in quotes
if (quoteSearch > nextDelim) {
// we have quotes, so we try to find the next delimiter not enclosed in quotes and also next starting quote char
var nextDelimObj = getNextUnqotedDelimiter(nextDelim, quoteSearch, nextNewline);
var nextDelimObj = getNextUnquotedDelimiter(nextDelim, quoteSearch, nextNewline);

// if we have next delimiter char which is not enclosed in quotes
if (nextDelimObj && typeof nextDelimObj.nextDelim !== 'undefined') {
Expand Down Expand Up @@ -1732,7 +1732,7 @@ License: MIT
}

/** Gets the delimiter character, which is not inside the quoted field */
function getNextUnqotedDelimiter(nextDelim, quoteSearch, newLine) {
function getNextUnquotedDelimiter(nextDelim, quoteSearch, newLine) {
var result = {
nextDelim: undefined,
quoteSearch: undefined
Expand All @@ -1754,7 +1754,7 @@ License: MIT
nextQuoteSearch = input.indexOf(quoteChar, nextQuoteSearch + 1);
}
// try to get the next delimiter position
result = getNextUnqotedDelimiter(nextNextDelim, nextQuoteSearch, newLine);
result = getNextUnquotedDelimiter(nextNextDelim, nextQuoteSearch, newLine);
} else {
result = {
nextDelim: nextDelim,
Expand Down

0 comments on commit e0b474d

Please sign in to comment.