Skip to content

Commit

Permalink
deploy: 5f61c41
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed Apr 13, 2024
1 parent eaf4814 commit a5029f2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions api/parse.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
// then increment pos to find next ;

while ((pos !== false) &&
(pos = unescapedIndexOf(line, delim, pos + 1)) !== -1) {
(pos = line.indexOf(delim, pos + 1)) !== -1) {

name = line.slice(lastParam + 1, pos);
if (name.length == 0) {
Expand All @@ -372,12 +372,12 @@
let nextChar = line[pos + 1];
if (nextChar === '"') {
valuePos = pos + 2;
pos = unescapedIndexOf(line, '"', valuePos);
pos = line.indexOf('"', valuePos);
if (multiValue && pos != -1) {
let extendedValue = true;
while (extendedValue) {
if (line[pos + 1] == multiValue && line[pos + 2] == '"') {
pos = unescapedIndexOf(line, '"', pos + 3);
pos = line.indexOf('"', pos + 3);
} else {
extendedValue = false;
}
Expand All @@ -389,8 +389,8 @@
);
}
value = line.slice(valuePos, pos);
lastParam = unescapedIndexOf(line, PARAM_DELIMITER, pos);
let propValuePos = unescapedIndexOf(line, VALUE_DELIMITER, pos);
lastParam = line.indexOf(PARAM_DELIMITER, pos);
let propValuePos = line.indexOf(VALUE_DELIMITER, pos);
// if either no next parameter or delimeter in property value, let's stop here
if (lastParam === -1 || (propValuePos !== -1 && lastParam > propValuePos)) {
pos = false;
Expand All @@ -399,8 +399,8 @@
valuePos = pos + 1;

// move to next ";"
let nextPos = unescapedIndexOf(line, PARAM_DELIMITER, valuePos);
let propValuePos = unescapedIndexOf(line, VALUE_DELIMITER, valuePos);
let nextPos = line.indexOf(PARAM_DELIMITER, valuePos);
let propValuePos = line.indexOf(VALUE_DELIMITER, valuePos);
if (propValuePos !== -1 && nextPos > propValuePos) {
// this is a delimiter in the property value, let's stop here
nextPos = propValuePos;
Expand Down

0 comments on commit a5029f2

Please sign in to comment.