Skip to content

Commit a2b34d9

Browse files
author
T_S_V
committed
Fixed T2679 - Single Quatation character issue - quotation at the start and at the end of a value
1 parent 37cf931 commit a2b34d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/icheck.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function escValue(val) {
22
if (typeof val === "string") {
3-
return (val || "").replace(/(?!^)(['])(?!$)/g, "\\$1");
3+
return (val || "").replace(/(['])/g, "\\$1");
44
}
55
return val;
66
}

0 commit comments

Comments
 (0)