From 14ae58892dab2a71903274a339f59efa43a45ab8 Mon Sep 17 00:00:00 2001 From: Erwin Mombay Date: Thu, 5 Oct 2023 15:47:23 -0700 Subject: [PATCH] fix lint issues --- .../examples_api_cache_query/examples_api_cache_query.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netlify/functions/examples_api_cache_query/examples_api_cache_query.js b/netlify/functions/examples_api_cache_query/examples_api_cache_query.js index e34242bd134..06efefed6d2 100755 --- a/netlify/functions/examples_api_cache_query/examples_api_cache_query.js +++ b/netlify/functions/examples_api_cache_query/examples_api_cache_query.js @@ -1,10 +1,10 @@ const {STYLE} = require('../cache.js'); -function htmlEncode(str) { - return String(str).replace(/[^\w. ]/gi, function(c){ - return '&#' + c.charCodeAt(0) + ';'; +const htmlEncode = (str) => { + return String(str).replace(/[^\w. ]/gi, (c) => { + return `&#${c.charCodeAt(0)};`; }); -} +}; const handler = async (ev) => { const queryString = JSON.stringify(ev.queryStringParameters, null, 2);