INNER CODE UNIT · JavaScript

captureGroup

semperai/amica · github-actions-reporter.js:19

          const captureGroup = message.match(/:([0-9]+):([0-9]+)/)

          if (!captureGroup) {
            console.log('Unable to extract line number from call stack')
            return
          }

          const [, line, col] = captureGroup
          console.log(
            `::error file=${testFilePath},line=${line},col=${col}::${message}`,
          )
        })
      })
    })
  }
}

module.exports = GithubActionsReporter

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…