Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2cef88 commit cf5bb63Copy full SHA for cf5bb63
lib/quoteString.js
@@ -15,10 +15,10 @@ function QuoteString(string) {
15
}
16
string = string.toString();
17
string = string.replace(/\\/g, '\\\\');
18
- string = string.replace('\x00', '\\x00');
19
- string = string.replace('\n', '\\n');
20
- string = string.replace('\r', '\\r');
21
- string = string.replace("'", "''");
+ string = string.replace(/\x00/g, '\\x00');
+ string = string.replace(/\n/g, '\\n');
+ string = string.replace(/\r/g, '\\r');
+ string = string.replace(/'/g, "''");
22
return "'" + string + "'";
23
24
0 commit comments