Skip to content

Commit 09d5f3a

Browse files
committed
fixed PR comments
1 parent 6d0448c commit 09d5f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/graph.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Graph {
6666
paramValue = paramValue.replace(/[\\"']/g, '\\$&');
6767
if (paramValue[0] != '"') strValue += '"';
6868
strValue += paramValue;
69-
if ((paramValue[paramValue.length - 1] != '"') || ((paramValue[paramValue.length - 1] == '"') && (paramValue[paramValue.length - 2] == '\\'))) strValue += '"';
69+
if (!paramValue.endsWith('"') || paramValue.endsWith("\\\"")) strValue += '"';
7070
return strValue;
7171
}
7272
if (Array.isArray(paramValue)) {

0 commit comments

Comments
 (0)