code: function findMatches(text, needles) {
    let matches = []
    text
      .split(/[\r\n]/)
      .forEach((line, rowIndex) => {
        needles.forEach(needle => {
          const colIndex = line.indexOf(needle)
          if (colIndex !== -1) {
            matches.push({
              line,
              needle,
              row: rowIndex + 1,
              col: colIndex,
            })
          }
        })
      })
    return matches
  }
docs: @typedef {Object} FindMatchesResult
  @property {string} line The matching text line.
  @property {string} needle The matching pattern.
  @property {number} row The matching row number.
  @property {number} col The matching column number.
   
  Find matches of one or more texts (needles) in a text.
  
  @param {string} text The text content.
  @param {string[]} needles List of text to find for matches.
  
  @return {FindMatchesResult[]}