in src/main/kotlin/com/intellij/ideolog/largeFile/IdeologLargeFileDocumentContext.kt [22:34]
fun matchLogFileFormatRegex(input: CharSequence, regexMatchers: List<RegexLogParser>): RegexLogParser? {
val bombedInput = StringUtil.newBombedCharSequence(input, FORMAT_DETECTION_DELAY_MILLIS)
regexMatchers.forEach { regexMatcher ->
try {
if (regexMatcher.regex.matcher(bombedInput).find()) {
return regexMatcher
}
}
catch (_: ProcessCanceledException) {
}
}
return null
}