Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinmombay committed Oct 5, 2023
1 parent acec5ab commit 14ae588
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit 14ae588

Please sign in to comment.