We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9238aa + a2b34d9 commit aae91ffCopy full SHA for aae91ff
src/icheck.js
@@ -1,6 +1,6 @@
1
function escValue(val) {
2
if (typeof val === "string") {
3
- return (val || "").replace(/(?!^)(['])(?!$)/g, "\\$1");
+ return (val || "").replace(/(['])/g, "\\$1");
4
}
5
return val;
6
0 commit comments