From 70cbaf8cf56aa1aa4800a9c8cb4724cbc2755725 Mon Sep 17 00:00:00 2001 From: Martin D Kealey Date: Wed, 12 Jan 2022 17:58:02 +1000 Subject: [PATCH] fix indenting of comments --- src/js/utils.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/js/utils.js b/src/js/utils.js index f1932acd..c65a84c4 100644 --- a/src/js/utils.js +++ b/src/js/utils.js @@ -59,29 +59,29 @@ const Utils = { }, /** - * Escapes any occurances of &, ", <, > or / with XML entities. - * - * @param {string} str - * The string to escape. - * @return {string} The escaped string. - */ + * Escapes any occurances of &, ", <, > or / with XML entities. + * + * @param {string} str + * The string to escape. + * @return {string} The escaped string. + */ escapeXML(str) { const replacements = { "&": "&", "\"": """, "'": "'", "<": "<", ">": ">", "/": "/" }; return String(str).replace(/[&"'<>/]/g, m => replacements[m]); }, /** - * A tagged template function which escapes any XML metacharacters in - * interpolated values. - * - * @param {Array} strings - * An array of literal strings extracted from the templates. - * @param {Array} values - * An array of interpolated values extracted from the template. - * @returns {string} - * The result of the escaped values interpolated with the literal - * strings. - */ + * A tagged template function which escapes any XML metacharacters in + * interpolated values. + * + * @param {Array} strings + * An array of literal strings extracted from the templates. + * @param {Array} values + * An array of interpolated values extracted from the template. + * @returns {string} + * The result of the escaped values interpolated with the literal + * strings. + */ escaped(strings, ...values) { const result = [];