Skip to content

Commit ca96c1f

Browse files
committed
style: use EJS comments
1 parent cebb89d commit ca96c1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/templates/app.js.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const pool = mysql.createPool({
1616
if (!values) {
1717
return query
1818
}
19-
<%- // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_function_as_the_replacement -%>
19+
<%# See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_function_as_the_replacement -%>
2020
return query.replace(/\:(\w+)/g, function(matchedSubstring, capturedValue) {
2121
if (values.hasOwnProperty(capturedValue)) {
2222
return this.escape(values[capturedValue])

src/templates/app.ts.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const pool = mysql.createPool({
1717
if (!values) {
1818
return query
1919
}
20-
<%- // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_function_as_the_replacement -%>
20+
<%# See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_function_as_the_replacement -%>
2121
return query.replace(/\:(\w+)/g, function(this: mysql.Pool, matchedSubstring: string, capturedValue: string) {
2222
if (values.hasOwnProperty(capturedValue)) {
2323
return this.escape(values[capturedValue])

0 commit comments

Comments
 (0)