From ca96c1f78adea45d7b1934bb58feaeea15011bac Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Mon, 8 Apr 2024 20:17:05 +0700 Subject: [PATCH] style: use EJS comments --- src/templates/app.js.ejs | 2 +- src/templates/app.ts.ejs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/app.js.ejs b/src/templates/app.js.ejs index 584d1ba..809d060 100644 --- a/src/templates/app.js.ejs +++ b/src/templates/app.js.ejs @@ -16,7 +16,7 @@ const pool = mysql.createPool({ if (!values) { return query } -<%- // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_function_as_the_replacement -%> +<%# See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_function_as_the_replacement -%> return query.replace(/\:(\w+)/g, function(matchedSubstring, capturedValue) { if (values.hasOwnProperty(capturedValue)) { return this.escape(values[capturedValue]) diff --git a/src/templates/app.ts.ejs b/src/templates/app.ts.ejs index 96cf653..24289b4 100644 --- a/src/templates/app.ts.ejs +++ b/src/templates/app.ts.ejs @@ -17,7 +17,7 @@ const pool = mysql.createPool({ if (!values) { return query } -<%- // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_function_as_the_replacement -%> +<%# See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_function_as_the_replacement -%> return query.replace(/\:(\w+)/g, function(this: mysql.Pool, matchedSubstring: string, capturedValue: string) { if (values.hasOwnProperty(capturedValue)) { return this.escape(values[capturedValue])