We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d0448c commit 09d5f3aCopy full SHA for 09d5f3a
src/graph.js
@@ -66,7 +66,7 @@ class Graph {
66
paramValue = paramValue.replace(/[\\"']/g, '\\$&');
67
if (paramValue[0] != '"') strValue += '"';
68
strValue += paramValue;
69
- if ((paramValue[paramValue.length - 1] != '"') || ((paramValue[paramValue.length - 1] == '"') && (paramValue[paramValue.length - 2] == '\\'))) strValue += '"';
+ if (!paramValue.endsWith('"') || paramValue.endsWith("\\\"")) strValue += '"';
70
return strValue;
71
}
72
if (Array.isArray(paramValue)) {
0 commit comments