From 26f08ccbc7921542faf9f3922f9ae35c2b2fd8b5 Mon Sep 17 00:00:00 2001 From: Konstantinos Norgias Date: Mon, 8 Nov 2021 18:28:37 +0100 Subject: [PATCH] chore: fix linting --- packages/combobox/src/LionCombobox.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/combobox/src/LionCombobox.js b/packages/combobox/src/LionCombobox.js index 783a3a771..9fa06d389 100644 --- a/packages/combobox/src/LionCombobox.js +++ b/packages/combobox/src/LionCombobox.js @@ -5,12 +5,18 @@ import { LionListbox } from '@lion/listbox'; const matchReverseFns = new WeakMap(); const matchA11ySpanReverseFns = new WeakMap(); +/** + * @param {Node} root + * @param {string} matchingString + * @param {object} option + */ function checkForTextMatch(root, matchingString, option) { Array.from(root.childNodes).forEach(childNode => { if (childNode.nodeName === '#text') { // check for match based on nodeValue const re = new RegExp(`^(.*)(${matchingString})(.*)$`, 'i'); + // @ts-ignore const match = childNode.nodeValue.match(re); if (match) {