diff --git a/.github/workflows/cla-mark.yml b/.github/workflows/cla-mark.yml index 3900f37..3216dfe 100644 --- a/.github/workflows/cla-mark.yml +++ b/.github/workflows/cla-mark.yml @@ -94,8 +94,10 @@ jobs: } if (createMissing) { - await ensureLabel(labelCovered, '2ea44f', 'Contributor License Agreement is considered covered'); - await ensureLabel(labelReview, '9a9a9a', 'CLA status requires manual review'); + await Promise.all([ + ensureLabel(labelCovered, '2ea44f', 'Contributor License Agreement is considered covered'), + ensureLabel(labelReview, '9a9a9a', 'CLA status requires manual review') + ]); } // Remove the opposite label if present, then add the desired one diff --git a/examples/mirc-ui-mock/app.js b/examples/mirc-ui-mock/app.js index 3b3df22..d180789 100644 --- a/examples/mirc-ui-mock/app.js +++ b/examples/mirc-ui-mock/app.js @@ -13,9 +13,10 @@ const channels = ['#general', '#random', '#cozy-outpost']; const users = ['alice', 'bob', 'carol', 'dave']; + const nickColors = ['nick-a','nick-b','nick-c','nick-d','nick-e','nick-f']; const nickColorClass = (nick) => { const idx = Math.abs(hash(nick)) % 6; // 0..5 - return ['nick-a','nick-b','nick-c','nick-d','nick-e','nick-f'][idx]; + return nickColors[idx]; }; // Simple hash for color bucketing @@ -144,7 +145,8 @@ logEl.scrollTop = logEl.scrollHeight; } + const htmlEscapeMap = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }; function escapeHtml(s) { - return s.replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c])); + return s.replace(/[&<>"']/g, (c) => htmlEscapeMap[c]); } })();