File tree 2 files changed +2
-0
lines changed
2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const pool = mysql.createPool({
16
16
if (!values) {
17
17
return query
18
18
}
19
+ <% - // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_function_as_the_replacement -%>
19
20
return query .replace (/ \: (\w + )/ g , function (txt , key ) {
20
21
if (values .hasOwnProperty (key)) {
21
22
return this .escape (values[key])
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const pool = mysql.createPool({
17
17
if (!values) {
18
18
return query
19
19
}
20
+ <% - // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_function_as_the_replacement -%>
20
21
return query .replace (/ \: (\w + )/ g , function (txt , key ) {
21
22
if (values .hasOwnProperty (key)) {
22
23
return this .escape (values[key])
You can’t perform that action at this time.
0 commit comments